સમજાવી એક BDC રનટાઈમ ભૂલ

હું વપરાશકર્તા ઈન્ટરફેસ પર અને પોતે જેની સ્પષ્ટ અભિવ્યક્તિ છે કે આ સપ્તાહમાં એક BDC ભૂલ કારણે 12 મધપૂડો લોગ રનટાઈમે.

પ્રથમ, આ વપરાશકર્તા ઈન્ટરફેસ દેખાયા:

બધા ઓળખકર્તા મૂલ્યો દાખલ કરવા ક્ષેત્રો યોગ્ય રીતે નામ સાથે SpecificFinder MethodInstance ચલાવવા માટે શોધી શકાયું નથી … ઇનપુટ માપદંડ આ એન્ટાઇટી માટે નિર્ધારિત દર ઓળખકર્તા સાથે સંકળાયેલ TypeDescriptors છે તેની ખાતરી કરો.

અહીં એક સ્ક્રીન શૉટ છે:

clip_image001

હું પણ આ સંદેશ દેખાય છે કારણ બની શકે છે 12 મધપૂડો લોગ ચાલશે ખાતે (using my patented high-tech-don’t-try-this-at-home "mysterious errors" પદ્ધતિ):

11/14/2007 09:24:41.27 w3wp.exe (0x080C) 0x0B8C SharePoint Portal Server Business Data 6q4x High Exception in BusinessDataWebPart.OnPreRender: System.InvalidOperationException: આ ઓળખકર્તા કિંમત ”, પ્રકાર ની ”, અમાન્ય છે. Expected Identifier value of Type ‘System.String’. Microsoft.Office.Server.ApplicationRegistry.MetadataModel.Entity.FindSpecific ખાતે(પદાર્થ[] subIdentifierValues, LobSystemInstance lobSystemInstance) Microsoft.SharePoint.Portal.WebControls.BdcClientUtil.FindEntity ખાતે(અસ્તિત્વ એન્ટિટી, પદાર્થ[] userValues, LobSystemInstance lobSystemInstance) Microsoft.SharePoint.Portal.WebControls.BusinessDataItemBuilder.GetEntityInstance ખાતે(જુઓ desiredView) Microsoft.SharePoint.Portal.WebControls.BusinessDataDetailsWebPart.GetEntityInstance ખાતે() Microsoft.SharePoint.Portal.WebControls.BusinessDataDetailsWebPart.SetDataSourceProperties ખાતે()

હું આસપાસ શોધ અને કેટલાક પગલે મળી એમએસડીએન ફોરમ, but they weren’t enough for me to understand what I was doing wrong. I watched a webcast by ટેડ Pattison કે મારી કંપની સર્વર પર દૂર squirreled અને મારા સમસ્યા ખ્યાલ આવી છે.

મારા ADF માં, પ્રમાણે હું SQL ડેટાબેઝ સાથે જોડાઈ છું:

            <મિલકત નામ="RdbCommandText" પ્રકાર="System.String">
              <![CDATA[
                પસંદ કરો
                      , CARRIER_ID, EFFDT, DESCR, EFF_STATUS, TAXPAYER_ID, NETWORK_ID, FRT_FORWARD_FLG, ALT_NAME1, ALT_NAME2, LANGUAGE_CD,
                      COUNTRY, ADDRESS1, ADDRESS2, ADDRESS3, ADDRESS4, શહેર, NUM1, NUM2, HOUSE_TYPE, ADDR_FIELD1, ADDR_FIELD2, ADDR_FIELD3,
                      COUNTY, રાજ્ય, પોસ્ટલ, GEO_CODE, IN_CITY_LIMIT, COUNTRY_CODE, ફોન, EXTENSION, ફેક્સ, LAST_EXP_CHK_DTTM, FREIGHT_VENDOR,
                      INTERLINK_DLL, TMS_EXCLUDE_FLG
                 (nolock)
                છે
                  (SETID <> 'શેર') અને
                  (ઓછી(CARRIER_ID) >= નીચલા(@ MinId)) અને
                  (ઓછી(CARRIER_ID) <= નીચલા(@ MaxId)) અને
                  (ઓછી(DESCR) નીચલા જેવું(@ InputDescr))
                ]]>
            </મિલકત>

હું DBA વ્યક્તિ કે એસક્યુએલ આપવામાં આવી હતી અને હું તેને જે સમજવા માટે આપવામાં છું એક ખાસ view they created just for me. The unique key there is CARRIER_ID.

અહીં હું પરિચય છે, ભૂલ છે:

      <આઇડેન્ટીફાયર>
        <ઓળખકર્તા નામ="CARRIER_ID" TypeName="System.String" />
        <ઓળખકર્તા નામ="DESCR" TypeName="System.String" /> 
</આઇડેન્ટીફાયર>

ક્યાંક રેખા સાથે, હું અર્થ ઉપર જાતે સ્વાંગ વ્યવસ્થાપિત હતી <આઇડેન્ટીફાયર> and added DESCR even though it’s not actually an identifier. I took DESCR out of the identifiers set and presto! તે બધા કામ કર્યું.

I hope this saves someone some grief 🙂

Technorati ટૅગ્સ: , , ,

2 પર "વિચારોસમજાવી એક BDC રનટાઈમ ભૂલ

  1. Pieter Veenstra

    મહત્તમ,

    I’ve got an issue with a BDC, and I wonder if you can help with this?

    I’m using two identifiier fields ( a number and a description field), whenever the total number of characters exceeds 60 I’m getting the foollowing errors:

    Invalid text value

    A text field contains invalid data. Please check the value and try again.

    Do you understand where this limit of 60 characters comes from? and how to fix this issue?

    Currently I’m limiting the description in such a way that the total number of characters doesn’t exceed 60.

એક જવાબ છોડો Pieter Veenstra જવાબ રદ કરો

તમારું ઇમેઇલ સરનામું પ્રકાશિત કરવામાં આવશે નહીં. જરૂરી ક્ષેત્રો ચિહ્નિત થયેલ છે *