I put the novars into all the insert statements. (It never occurred to me that values would be returned by an insert.) Anyway...
It didn't change the behavior. The sections of the code that are not doing a substring substitution in the URL are working fine. Those sections that ARE doing the substring substitution, aren't working.
The html and refs that are being copied are the same in both cases. It's just that in one case, the URL already says ".../Consumer/...," so no substitution is needed. In the other section, the middle of the URL has to be changed from "/Consumer/" to "/Wholesaler/" for consistency with the rest of what's in the destination database.
There's something else going on.
By the way, the substring substitution piece was working fine before we started doing the hash comparison to eliminate duplicates that came from the copy operation.
It didn't change the behavior. The sections of the code that are not doing a substring substitution in the URL are working fine. Those sections that ARE doing the substring substitution, aren't working.
The html and refs that are being copied are the same in both cases. It's just that in one case, the URL already says ".../Consumer/...," so no substitution is needed. In the other section, the middle of the URL has to be changed from "/Consumer/" to "/Wholesaler/" for consistency with the rest of what's in the destination database.
There's something else going on.
By the way, the substring substitution piece was working fine before we started doing the hash comparison to eliminate duplicates that came from the copy operation.