Create a content migration from CSV - Pre Processing?

OliverKharasGU
Community Explorer
4
1940

Hi everyone this is what I currently have:

 

Capture.PNG

 

And my CSV contains the following two copies:

222.PNG

But my two copies are sitting as 'pre processing' and I am unsure as to what I'm doing wrong. Help would be greatly appreciated

4 Comments
JamesSekcienski
Community Coach
Community Coach

Hello @OliverKharasGU 

When I did a course copy content migration before, I used the course version rather than the user version of the POST request:

POST /api/v1/courses/:course_id/content_migrations

 

Also, to provide the course id's, I wouldn't use pre-attachment.  I think pre-attachment is for file uploads that are needed like with a QTI import. 

It looks like you are using Postman, so to provide the CSV file with the course ids, you would want to use Runner and provide the CSV file in the Runner rather than as part of the query.  Here is a guide on using Postman Runner:  https://learning.postman.com/docs/running-collections/intro-to-collection-runs/

OliverKharasGU
Community Explorer
Author

Hi @JamesSekcienski 

Appreciate your reply.

 

I will try using the course version. I just thought the user version would be the one because I won't always want to run course copies from one source. It will eventually be used as a 'rollover' tool that copies courses say from year 1 to year 2 etc.

 

I was using the collection runner to upload my csv file. If I take the pre-attachment line out, I get 404 error

OliverKharasGU
Community Explorer
Author

UPDATE: thanks @JamesSekcienski changing it to :course_id fixed my issue thank you for your insight and time! Was going in circles yesterday

JamesSekcienski
Community Coach
Community Coach

@OliverKharasGU You're welcome!  I'm glad you were able to get it working with the course URL version instead