Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
SantiagoG2310
Regular Visitor

Copy activity from REST in CSV format

Hi,

I have an API connection to get data in CSV format and when I try to create a Copy Activity in a Data Pipeline I got this error:


Error occurred when deserializing source JSON file ''. Check if the data is in valid JSON object format.
Error parsing NaN value. Path '', line 1, position 1.

I tried so many options but is not working yet, I appreciate so much if you can bring me instructions or a guide to complete the activity.

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @SantiagoG2310 

 

Thanks for using Microsoft Fabric Community.

Apologies for the issue that you are facing here.

 

When you encounter an error while deserializing source JSON data, it could be due to various reasons such as invalid JSON format, incorrect data types, or missing fields. To resolve this issue, you can try the following steps:

  • Check if the JSON data is in a valid format. You can use an online JSON validator tool to validate the JSON data.
  • Ensure that the data types of the JSON fields match the expected data types.
  • Verify that all the required fields are present in the JSON data.

If the issue still persists, you can try changing the connection type from REST to HTTP this might help you.

 

If you can provide more details about your specific pipeline setup, API connection configuration, sample data, and screenshot of the error message, to understand the query and guide you in a better way.

 

I hope the information helps. Please do let us know if you have any further questions. Glad to help.

 

Thanks

View solution in original post

4 REPLIES 4
v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @SantiagoG2310 

 

Thanks for using Microsoft Fabric Community.

Apologies for the issue that you are facing here.

 

When you encounter an error while deserializing source JSON data, it could be due to various reasons such as invalid JSON format, incorrect data types, or missing fields. To resolve this issue, you can try the following steps:

  • Check if the JSON data is in a valid format. You can use an online JSON validator tool to validate the JSON data.
  • Ensure that the data types of the JSON fields match the expected data types.
  • Verify that all the required fields are present in the JSON data.

If the issue still persists, you can try changing the connection type from REST to HTTP this might help you.

 

If you can provide more details about your specific pipeline setup, API connection configuration, sample data, and screenshot of the error message, to understand the query and guide you in a better way.

 

I hope the information helps. Please do let us know if you have any further questions. Glad to help.

 

Thanks

Hi @v-cboorla-msft,

Thanks for your response, I change the connection type to HTTP but I dont have idea how pass a Bearer Token in Header and found that is simple than headerName: headerValue in Aditional Headers field.

 

Thanks Again.

Regards.

Hi @SantiagoG2310 

 

Glad that your query got resolved.

Please continue using Fabric Community for any help regarding your queries.

Hi @SantiagoG2310 


We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.
In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.


Thanks

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.