Error Importing programatically records in async mode RRS feed

  • Question

  • I have a plugin with import business logic to import records to custom entity. My plugin is sync mode. The plugin is trigger by a workflow that implements a wait condition. If my plugin is being executed without workflow works successful, but if it's being triggered by workflow displays the next error when the next line is executed.

    importFile.Id = orgService.Create(importFile);

    The Error:

    System.ArgumentNullException: Value cannot be null.Parameter name: str

    Therefore, Could not be supported executing code to create a import job from async mode?


    Friday, October 11, 2013 12:50 AM

All replies

  • It looks like one of the value in the plugin context is missing, might be that value is not coming in the workflow. please check your plugin code again and validate accordingly.

    Thursday, October 17, 2013 7:42 PM
  • It's strange because I've done the import with csv file and it works well, but I haven't got it when I use an excel file. However the exact code works well when I move it to a console project.

    Friday, October 18, 2013 8:56 AM