The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Save button error in 7.5
Posted: 15 Oct 08 11:51 AM
|
I have a custom detail view on a custom main view for a custom entity.
I put a Save button on the toolbar and set the action to Business Rule (Save).
When I click the save button I get a SalesLogix Exception screen reading "We apologize for the inconvenience, but your request cannot be completed. Exception has been thrown by the target of an invocation."
Where do I go from here? |
|
|
|
Re: Save button error in 7.5
Posted: 15 Oct 08 4:25 PM
|
Hi Dan,
Have you been through all the usual stuff?
- Deleted the WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files - Full rebuild and redeploy - Delete all formerly deployed files and redeploy
Anything unusual in the form?
Stephen www.slxmaster.com
|
|
|
|
Re: Save button error in 7.5
Posted: 15 Oct 08 5:20 PM
|
Deleted the temp ASP files. Deleted the file in the user profile \Local Settings\Application Data\Sage\Platform
Did not delete the files in intetpub\wwwroot\SLXClient because I don't want to break IIS.
Did a Ctrl-Rebuild and redeplayed.
Still getting the error.
Nothing unusual in the form & main view except that they were originally created to access the Procedures table, which was discontinued by SLX a few versions ago, but our customer still uses. It turns out that the Procedures table won't work in SLX Web 7.2 or 7.5 because all primary keys must be account name + ID (ID for Procedures was procedureid). So my solution was to create a new table c_procedure with the same fields except for c_procedureid and copy all records from Procedure into it. After I created a main view in 7.5 LAN for c_procedure I was able to map the web entity to c_procedure and view c_procedure records in the web.
Now I just need to Save changes. Is there some Save code buried in there that refers to procedure instead of c_procedure? |
|
|
|
Re: Save button error in 7.5
Posted: 15 Oct 08 5:41 PM
|
Why would removing files in SLXClient break IIS?
Redeploy will replace files anyway and cause a JIT stuff to rebuild. Deleting the files manually will not hurt this process.
What happens in Profiler when you try to Save?
Stephen www.slxmaster.com
|
|
|
|
Re: Save button error in 7.5
Posted: 20 Oct 08 10:54 AM
|
I deleted the files in IIS/wwwroot/SLXClient and redeployed - same result.
Then I click save and look in profiler, I get a SELECT statement for the record I was looking at which works in Query analyzer once I replace DBTYPE_STR,"value" with just 'value'.
Then there's a select statement for the plugin table - "LeadImportHistory," Two updates for VIRTUALFILESYSTEM and three Selects for ACTIVITIES, which AFAIK are not related to the save I want to do. |
|
|
|
Re: Save button error in 7.5
Posted: 21 Oct 08 8:52 AM
|
Are there any error messages in the Windows Application Event Log? Often times the source of the error (or at least a good pointer) can be found there. |
|
|
| |
|
Re: Save button error in 7.5
Posted: 22 Oct 08 12:10 AM
|
Do you have access to Visual Studio? If so you can pretty quickly open the web site from it and put a break-point right before the 'save' on your custom page. If anything else you might be able to buy yourself a clue to what's really going on...
--Ken-- |
|
|
|