Salesforce:内部服务器错误

发布于 2025-01-05 19:57:41 字数 801 浏览 0 评论 0原文

我有一个正确渲染的 Visualforce 页面。有一个命令按钮“保存”,它执行一些 DML 语句并重定向到其他页面。这个功能之前运行良好。从昨天开始,单击“保存”按钮时,我收到此错误:

An internal server error has occurred 
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

Error ID: 471693248-7806 (-1751278023)  

我无法找出此错误的原因。我什至尝试注释掉“保存”按钮调用的方法中的所有代码。尽管如此,我还是收到了这个错误。造成此类错误的原因是什么?

I have a visualforce page which is rendering correctly. There is a commandbutton "Save" which executes some DML statement and redirects to some other page. This functionality was working fine earlier. Since yesterday, on click of the "Save" button, i am getting this error :

An internal server error has occurred 
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

Error ID: 471693248-7806 (-1751278023)  

I am not able to find out what is the cause of this error. I even tried commenting out all the code in the method called by Save button. Still, i am getting this error. What can be the cause of this type of error?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

箹锭⒈辈孓 2025-01-12 19:57:41

这可能是由代码中与“保存”按钮无关的其他内容引起的。首先注释掉控制器/扩展中的所有内容并以这种方式保存。然后逐个属性、逐个方法取消注释部分;每次保存并检查您的页面。这将使您更好地了解错误发生的位置。如果这不起作用,请致电 Salesforce 支持号码

This could be caused by something else in your code not related to the Save button. Start by commenting everything out in your controller/extension and save it that way. Then property by property, and method by method un-comment sections; save each time, and review your page. That will give you a better idea where the error occurred. If that doesn't work, call your Salesforce support number.

姜生凉生 2025-01-12 19:57:41

由于您已经尝试注释掉代码但没有效果,请尝试更改并重新保存类文件的关联 .meta 文件。

因此,如果您的文件 ClassName.cls-meta.xml 如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>20.0</apiVersion>
    <status>Active</status>
</ApexClass>

尝试更改 API 版本号并重新保存:

<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">

    <apiVersion>23.0</apiVersion>

    <status>Active</status>
</ApexClass>

另外,请检查您的类是否在 Name|Setup|Develop|Apex Classes 中列为 Active 和 Valid 。

此外,您的组织可能刚刚在周末收到春季升级,并且实际上可能会看到真正的 Salesforce 错误!记录一个案例并让他们排除故障(如果有)。

祝你好运

Since you've already tried commenting out your code to no avail, try changing and re-saving the associated .meta file for your class file.

So if your file ClassName.cls-meta.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>20.0</apiVersion>
    <status>Active</status>
</ApexClass>

Try changing the API version number and re-saving:

<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">

    <apiVersion>23.0</apiVersion>

    <status>Active</status>
</ApexClass>

Also, check to see that your class is listed as both Active and Valid in Name|Setup|Develop|Apex Classes.

Further, your org may have just received its spring upgrade over the weekend and could actually be seeing a genuine Salesforce bug! Log a case and have them troubleshoot it if so.

Good luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文