Microsoft Knowledge Base Email Alertz

KBAlertz.com: (929944) - When importing an application into the SoftGrid Management Console, why does it fail with the following error code? Unexpected error occurred.Unable to create the new Application. Please report the following error code to your system...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]






Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Error message when you try to import an application to the SoftGrid Management Console: "Unexpected error occurred. Error code: 0000B003"

Article ID:929944
Last Review:April 28, 2007
Revision:2.0

SYMPTOMS

When you try to import an application to the SoftGrid Management Console, the import operation is unsuccessful. Additionally, you receive the following error message:
Unexpected error occurred.
Unable to create the new Application. Please report the following error code to your system administrator.
Error code: 0000B003
Additionally, the following error message is logged in the SoftGrid Management Console log file (Sftmmc.log):
Violation of UNIQUE KEY constraint 'UK_FILE_TYPE_ACTIONS_1'. Cannot insert duplicate key in object 'dbo.File_Type_Actions'. ---> SoftGrid.Management.AddApplicationFailedException: The statement has been terminated.

Back to the top

CAUSE

This issue may occur when a SHELLCOMMAND element has multiple attributes that have the same value.

Back to the top

WORKAROUND

To work around this issue, follow these steps:
1.Open the .osd file by using a text editor such as Notepad.
2.Review the elements in the SOFTPKG element. These elements are MGMT_FILEASSOCIATIONS, PROGLIDLIST, and PROGID.
3.For each PROGID element that is listed, review each SHELLCOMMAND element. This element is in the SHELLCOMMANDLIST element.
4.If the SHELLCOMMANDLIST element has multiple SHELLCOMMAND elements, the name and the friendly name for each SHELLCOMMAND element must be unique.

For example, consider the following <SOFTPKG> element.
<SOFTPKG>
  <MGMT_FILEASSOCIATIONS>
    <PROGIDLIST>
      <PROGID>
        <SHELLCOMMANDLIST>          
           <SHELLCOMMAND NAME="open" FRIENDLYNAME="&Open DefaultApp"/>
          <SHELLCOMMAND NAME="edit" FRIENDLYNAME="&Open DefaultApp"/>
        </SHELLCOMMANDLIST>
      </PROGID>
    </PROGIDLIST>
  </MGMT_FILEASSOCIATIONS>
</SOFTPKG>
In this example, the SHELLCOMMANDLIST element has two SHELLCOMMAND elements. One SHELLCOMMAND element has the name open, and the other has the name edit.

However, both SHELLCOMMAND elements have the same friendly name &Open DefaultApp. In this case, you should change the friendly name of edit from &Open DefaultApp to &Edit DefaultApp.
5.Save the .osd file, and then exit the text editor.
6.Import the application as usual.

Back to the top


APPLIES TO
•Microsoft SoftGrid for Terminal Services
•Microsoft SoftGrid for Windows Desktops

Back to the top

Keywords: 
kbtshoot kbexpertiseinter KB929944

Back to the top

   

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please