Skip to main content
October 15, 2023
Question

foreign key null value in script task

  • October 15, 2023
  • 5 replies
  • 0 views

I have "requestID" as a foreign key in 2 tables "attachment" and "Document"  i passed it as process variable through a task script. When i debug the process it works but it saves the foreign key "Null". 

what might be the reason? 

    5 replies

    stefanhelzle0001
    Brainy
    October 15, 2023

    "When i debug the process it works but it saves the foreign key "Null".

    What works? What do you observe? Please describe in every imaginable detail!

    https://stackoverflow.com/help/how-to-ask

    codeblog.jonskeet.uk/.../

    October 15, 2023

    WHAT I AM SAYING IS THAT THE PROCESS MODEL DOES NOT RETURN ANY ERROR S ,WHEN I DEBUG IT. EVERY OTHER FIELD IS WRITTEN ON THE DATABASE EXCEPT THE FOREIGN KEY ITS "NULL". 

    October 15, 2023

    ALSO I AM ASKING GENERALLY WHAT MIGHT BE THE RASON OF THESE KIND OF ERRORS. BECAUSE I CANT POST MY ENTIRE PROCESS MODEL OF CODE HERE :))