Microsoft KB Archive/929944: Difference between revisions
(importing KB archive) |
m (Text replacement - "&" to "&") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 51: | Line 51: | ||
<div class="errormessage"> | <div class="errormessage"> | ||
Violation of UNIQUE KEY constraint 'UK_FILE_TYPE_ACTIONS_1'. Cannot insert duplicate key in object 'dbo.File_Type_Actions'. --- | 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. | ||
</div> | </div> | ||
Line 74: | Line 74: | ||
<li><p>If the '''SHELLCOMMANDLIST''' element has multiple '''SHELLCOMMAND''' elements, the name and the friendly name for each '''SHELLCOMMAND''' element must be unique.<br /> | <li><p>If the '''SHELLCOMMANDLIST''' element has multiple '''SHELLCOMMAND''' elements, the name and the friendly name for each '''SHELLCOMMAND''' element must be unique.<br /> | ||
<br /> | <br /> | ||
For example, consider the following | For example, consider the following <SOFTPKG> element.</p> | ||
<pre class="codesample"> | <pre class="codesample"><SOFTPKG> | ||
<MGMT_FILEASSOCIATIONS> | |||
<PROGIDLIST> | |||
<PROGID> | |||
<SHELLCOMMANDLIST> | |||
<SHELLCOMMAND NAME="open" FRIENDLYNAME="&Open DefaultApp"/> | |||
<SHELLCOMMAND NAME="edit" FRIENDLYNAME="&Open DefaultApp"/> | |||
</SHELLCOMMANDLIST> | |||
</PROGID> | |||
</PROGIDLIST> | |||
</MGMT_FILEASSOCIATIONS> | |||
</SOFTPKG></pre> | |||
<p>In this example, the '''SHELLCOMMANDLIST''' element has two '''SHELLCOMMAND''' elements. One '''SHELLCOMMAND''' element has the name '''open''', and the other has the name '''edit'''.<br /> | <p>In this example, the '''SHELLCOMMANDLIST''' element has two '''SHELLCOMMAND''' elements. One '''SHELLCOMMAND''' element has the name '''open''', and the other has the name '''edit'''.<br /> | ||
<br /> | <br /> | ||
However, both '''SHELLCOMMAND''' elements have the same friendly name '''& | 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'''.</p></li> | ||
<li>Save the .osd file, and then exit the text editor.</li> | <li>Save the .osd file, and then exit the text editor.</li> | ||
<li>Import the application as usual.</li></ol> | <li>Import the application as usual.</li></ol> |
Latest revision as of 14:18, 21 July 2020
Article ID: 929944
Article Last Modified on 4/28/2007
APPLIES TO
- Microsoft SoftGrid for Terminal Services
- Microsoft SoftGrid for Windows Desktops
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:
Additionally, the following error message is logged in the SoftGrid Management Console log file (Sftmmc.log):
CAUSE
This issue may occur when a SHELLCOMMAND element has multiple attributes that have the same value.
WORKAROUND
To work around this issue, follow these steps:
- Open the .osd file by using a text editor such as Notepad.
- Review the elements in the SOFTPKG element. These elements are MGMT_FILEASSOCIATIONS, PROGLIDLIST, and PROGID.
- For each PROGID element that is listed, review each SHELLCOMMAND element. This element is in the SHELLCOMMANDLIST element.
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.- Save the .osd file, and then exit the text editor.
- Import the application as usual.
Keywords: kbtshoot kbexpertiseinter KB929944