changed value of file pattern to set of objects in copy activity under sink but still getting wrong output

azure_learner 20 Reputation points
2025-04-07T12:49:49.84+00:00

Hi All,

so i changed the value of property file pattern to set of objects from UI and saved changed and ran the pipeline but still the output file is giving me results in this format which is wrong

existing result

[
	{"empid" : 1, "empname" : "A"},
	{"empid" : 2, "empname" : "B"},
	{"empid" : 3, "empname" : "C"}
]

expected result :

{"empid" : 1, "empname" : "A"},
{"empid" : 2, "empname" : "B"},
{"empid" : 3, "empname" : "C"}

pipeline UI :

file pattern value changed to set of objects from UI

Pipeline backend JSONfile pattern value in backend JSON code

can anyone please help with why its not working as expected?

thanks in advance :)

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,426 questions
{count} votes

Accepted answer
  1. Rakesh Govindula 965 Reputation points Microsoft External Staff
    2025-04-08T06:38:47.53+00:00

    Hi @azure_learner,

    i changed the value of property file pattern to set of objects from UI and saved changed and ran the pipeline but still the output file is giving me results in this format which is wrong

    The value is still arrayofObjects in the Pipeline JSON even after changing in the UI suggest that this might be an intermittent issue.

    You can try the below trouble shooting steps first from your end:

    • Publish the pipeline changes and re-open the ADF workspace again.
    • Clear the browser cache and also try with another browser.

    If still facing the issue, instead of changing in the UI, try to edit in the Pipeline JSON itself and save it.

    
    "sink": {
    
                            "type": "JsonSink",
    
                            "storeSettings": {
    
                                "type": "AzureBlobFSWriteSettings"
    
                            },
    
                            "formatSettings": {
    
                                "type": "JsonWriteSettings",
    
                                "filePattern": "setOfObjects"
    
                            }
    
                        },
    
    

    enter image description here

    The commas in between the objects will give the invalid JSON. The correct result JSON from the above pipeline run looks as shown below.

    enter image description here

    The dataflow will also give the same result file.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.