Thank you for this form Hilary and sorry for the delayed response. I have been out of the office for a while but I do not have the best news to report. Okay so I think this was a good step in the right direction for this form the departments are now being queried based on the list of values that are pull from my secondary source SP list, but more problems seem to keep appearing as time goes on...
I am getting the error "The form could not be displayed because default values or rules are taking too long to evaluate. To correct this, simplify the expressions or reduce the size of the data sets that they depend on." when I open the form after publishing. The number of items in the list are around 150 in total.
I also get an error when selecting the largest department query that the form needs (selecting 80 entries at a time). The error that I get when doing this in preview mode is:
"An error occurred in the form's rules or code. The number of rule actions or the number of calls to the OnAfterChange event for a single update in the data exceeded the maximum limit.
The rules or code may be causing an infinite loop. To prevent this, ensure that the rule action or event handler does not update the data which causes the same rule action or event handler to execute."
Questions
Is this too much for SharePoint to handle with a query?
Could it be a possible logic error with the setting of values using the ID?
Also each department can have any amount of different items being queried at a time is this a problem?
Any help that can be passed along would be greatly appreciated! :)