Message=The attribute 'status' with value '100000006' cannot be converted from original type 'System.String' to target type 'Microsoft.Xrm.Sdk.OptionSetValue'.

Chen, Flora-F1 0 Reputation points
2024-06-18T03:39:13.7166667+00:00

I want to update CRM data with the same value 100000006, but use copy data additional column failed.

@array(json('{"name":"status","value":100000006}'))
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,798 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Smaran Thoomu 16,475 Reputation points Microsoft Vendor
    2024-06-21T06:30:04.6+00:00

    Hi @Chen, Flora-F1
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .

    Issue: I want to update CRM data with the same value 100000006, but use copy data additional column failed.

    AI ConvertCopy

    @array(json('{"name":"status","value":100000006}'))
    
    
    

    Solution: I don't have directly solution yet. The suggestion is putting the data into a staging, and it can read as a Int.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

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.