SOS: XAML binding Error: Converter failed to convert value of type '...' to to type '...'

Hi, I'm working on a small Windows store App project using C# + XAML, and encountered a really weird problem with data binding in XAML. The error message is:
Error: Converter failed to convert value of type 'Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' to type
'ProgressableBase'; BindingExpression: Path='' DataItem='Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; target element is 'MyControls.ProgressableViewControl' (Name='root'); target property is 'Progressable'
(type 'ProgressableBase').
Error: Converter failed to convert value of type 'Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' to type
'IMatchWrapper'; BindingExpression: Path='' DataItem='Neptune.MyMatch, SkyNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; target element is 'MyControls.MatchScoreControl' (Name='root'); target property is 'Match' (type 'IMatchWrapper').
the XAML code snippet involved is:
<local:MatchScoreControl Match="{Binding Converter={StaticResource TestConverter}}" />
here:
1) The type of the 'Match' property of 'MatchScoreControl' is 'IMatchWrapper', the type of the DataContext is 'MyMatch';
2) 'MyMatch' is derived from 'ProgressableBase' and implemented
'IMatchWrapper';
3) below is the definition of 'MatchScoreControl' and its dependency property 'Match':
public sealed partial class MatchScoreControl : UserControl
public IMatchWrapper Match
get { return (IMatchWrapper)GetValue(MatchProperty); }
set { SetValue(MatchProperty, value); }
public static readonly DependencyProperty MatchProperty =
DependencyProperty.Register("Match", typeof(IMatchWrapper), typeof(MatchScoreControl), new PropertyMetadata(null, OnMatchPropertyChanged));
private static void OnMatchPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
// this line will never get called
Debug.WriteLine(e.NewValue.GetType().FullName);
} //more code...
4) TestConverter is a dummy value converter(IValueConverter) which does nothing just to make sure the binding object and target type is as expected:
public sealed class TestConverter : IValueConverter
public object Convert(object value, Type targetType, object parameter, string language)
if (targetType != typeof(IMatchWrapper))
throw new NotImplementedException("Error: targetType is not IMatchWrapper.....");
if (!(value is IMatchWrapper))
throw new NotImplementedException("Error: value is not IMatchWrapper...");
return (IMatchWrapper)value;
public object ConvertBack(object value, Type targetType, object parameter, string language)
throw new NotImplementedException();
When I run the app, none of the two exceptions in the TestConverter.Convert() is thrown, which is right and as expected. But the out window keeps throwing the error message as above. This is pretty weird!
I've tried adding a parameterless constructor to the class 'MyMatch', but it doesn't work.
Any suggestion would be appreciated!

Good to know you have the solution and thanks for sharing the experience.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Office 365 API, error: The token has invalid value 'roles' for the claim type ''

    Hi guys,
    I am trying to develop a Daemon / Server application using the new Office 365 APIs. I have added a new application to Azure Active Directory. I am using cURL + the app ID and secret to get a JWT token, this is the exact request:
    curl -X POST https://login.windows.net/TENANT_KEY/oauth2/token \
    -F redirect_uri=http://spreadyDaemon \
    -F grant_type=client_credentials \
    -F resource=https://outlook.office365.com/ \
    -F client_id=XXXX \
    -F client_secret=XXXX=
     I get back a JWT however it has no scopes for access set here is the decoded JWT claims:
    "ver": "1.0",
    "aud": "https://outlook.office365.com/",
    "iss": "https://sts.windows.net/TENANT_KEY/",
    "oid": "17fa33ae-a0e9-4292-96ea-24ce8f11df21",
    "idp": "https://sts.windows.net/TENANT_KEY/",
    "appidacr": "1",
    "exp": 1415986833,
    "appid": "XXXX",
    "tid": "e625eb3f-ef77-4c02-8010-c591d78b6c5f",
    "iat": 1415982933,
    "nbf": 1415982933,
    "sub": "17fa33ae-a0e9-4292-96ea-24ce8f11df21"
    Therefore when I do a request to the exchange API endpoint I get the following response:
    HTTP/1.1 401 Unauthorized
    Cache-Control: private
    Server: Microsoft-IIS/8.0
    request-id: d08d01a8-7213-4a13-a598-08362b4dfa70
    Set-Cookie: ClientId=WDALDNO0CAIOOZDZWTA; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    X-CalculatedBETarget: am3pr01mb0662.eurprd01.prod.exchangelabs.com
    x-ms-diagnostics: 2000001;reason="The token has invalid value 'roles' for the claim type ''.";error_category="invalid_token"
    X-DiagInfo: AM3PR01MB0662
    X-BEServer: AM3PR01MB0662
    X-AspNet-Version: 4.0.30319
    Set-Cookie: exchangecookie=6bf68da033684824af21af3b0cdea6e3; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxoGaio2PjZvPztGPjZCb0ZqHnJeekZiak56djNGckJI=; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxg==; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    X-Powered-By: ASP.NET
    X-FEServer: DB4PR02CA0026
    WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000001-0000-0000-c000-000000000000@*", authorization_uri="https://login.windows.net/common/oauth2/authorize", error="invalid_token",Basic Realm="",Basic Realm=""
    Date: Fri, 14 Nov 2014 16:40:59 GMT
    Content-Length: 0
    I have asked a stack overflow question here: http://stackoverflow.com/questions/26950838/office-365-api-error-the-token-has-invalid-value-roles-for-the-claim-type
    Any help on the matter will be hugely appreciated, thanks!

    Hi Manu,
    To wrap this thread up; I have had an answer on stack overflow.
    It appears that currently the grant type client_credentials is not supported, according to a comment on this blog post by Matthias' http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx 
    "There is no way in the code flow to avoid username/password. We're working on a client credential flow for later this fall that will give you the functionality required to run background services. For this you will not need a username/password,
    but the application will directly assert its identity and authenticate as itself."
    Unfortunately I require client_credentials for a daemon process, Q4 is the scheduled release for support for this grant time.
    Thanks for the help,
    Nick

  • Error "Conversion failed when converting date and/or time from character string" to execute one query in sql 2008 r2, run ok in 2005.

    I have  a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
    USE [Runtime]
    GO
    /****** Object:  UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt]    Script Date: 06/11/2013 08:47:47 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE   FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)  
    -- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
    RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
    AS  
    BEGIN 
    -- Crea el Cursor
    DECLARE cursorHora CURSOR
    READ_ONLY
    FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
    -- Declaracion de variables locales
    DECLARE @produc_opt_hora int
    DECLARE @produc_opt_parc int
    DECLARE @nsacos int
    DECLARE @time_parc datetime
    -- Inicializamos VARIABLES
    SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
    -- Abre y se crea el conjunto del cursor
    OPEN cursorHora
    -- Comenzamos los calculos 
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    /************  BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR  ************/
    WHILE (@@fetch_status <> -1)
    BEGIN
    IF (@@fetch_status = -2)
    BEGIN
    -- Terminamos la ejecucion 
    BREAK
    END
    -- REALIZAMOS CÁLCULOS
    SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
    -- INSERTAMOS VALORES EN LA TABLA
    INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
    -- Avanzamos el cursor
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    END
    /************  FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR  ***************/
    -- Cerramos el cursor
    CLOSE cursorHora
    -- Liberamos  los cursores
    DEALLOCATE cursorHora
    RETURN 
    END

    You can search the forums for that error message and find previous discussions - they all boil down to the same problem.  Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime.  In general,
    this works in any version of sql server if the runtime settings are correct for the format of the string data.  The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
    the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers. 
    I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion.  It may not be in the function you posted, since that function also executes other functions. 
    You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all. 
    Tibor's site

  • SSRS error "Conversion failed when converting the nvarchar value"

    Hi folks!
    After SCCM 2012 R2 upgrade, we have errors with self made reports:
    An error has occurred during report processing. (rsProcessingAborted)
    Cannot read the next data row for the dataset DataSet2. (rsErrorReadingNextDataRow)
    Conversion failed when converting the nvarchar value '*****' to data type int.
    I found several articles to see reporting services log file for possible WMI related errors, but none exists. SQL server is 2008R2, Runned mofcomp, and re-installed reporting services role, but problem remains.
    I traced the dataset2 query:
    SELECT
      v_Collection_Alias.CollectionID ,v_Collection_Alias.Name
    FROM fn_rbac_Collection(@UserSIDs) v_Collection_Alias
    WHERE
     v_Collection_Alias.CollectionType = 2
    Any adwice is appreciated.
    ~Tuomas.

    Hi Tuomas,
    What's the SQL Server version? To verify the the SQL Server version, please see
    http://support.microsoft.com/kb/321185
    SCCM 2012 R2 need SQL Server 2008 R2 SP1 with CU 6 or SQL Server 2008 R2 with SP2 (http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigSQLSrvReq).
    If the SQL meets requirement, I would suggest you submit a thread to SQL forum to deal with the sql issue.
    Thanks.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Getting error " Conversion failed when converting date and/or time from character string."

    Hello Experts,
    I am getting the above error, when i try to execute the query. 
    DECLARE @START AS DATETIME
    DECLARE @END AS DATETIME
    SET @START = CONVERT(VARCHAR(10), GETDATE()-1,101) + '00:00:00'
    SET @END = CONVERT(VARCHAR(10), GETDATE()-1,101) + '23:59:59'
    Any suggestions as to how to get out of this error.
    Appreciate any help/suggestions.
    Thanks!
    Rahman

    Thanks Latheesh,
    I am able to execute the above query, but when i implement the same in my query, i am getting another error.
    Invalid column name 'DATETIME'.
    Invalid column name 'DATETIME'.
    Invalid column name 'DATETIME'.
    Invalid column name 'DATETIME'.
    DECLARE @START AS DATETIME
    DECLARE @END AS DATETIME
    SET @START = CONVERT(VARCHAR(10), GETDATE()-1,101) + ' 00:00:00'
    SET @END = CONVERT(VARCHAR(10), GETDATE()-1,101) + ' 23:59:59'
    SELECT
    SUBSTRING(A1.TGT,2,4) SATC,
    SUBSTRING(DGT,2,4) COFS,
    (CASE WHEN SG.S_G_E_NM LIKE '%S%' THEN 'SALES' WHEN SG.S_G_E_NM LIKE '%U%' THEN 'SUPPORT' WHEN SG.S_G_E_NM LIKE '%S%' THEN 'CUSTSERV' ELSE 'UNKNOWN' END) SKILL,
    COUNT(*) TOTAL,
    AVG(T1.NET) AS A,
    AVG(T1.TALK + T1.HOLD + T1.WORK) AVGHTIME
    FROM
    SELECT * FROM TABLE WHERE (1=1)
    AND DATETIME >= @START
    AND DATETIME <=@END
    AND PERIPH_ID IN (1111,2222,3333)
    AND TGT_ID NOT IN (12457)
    ANDSEQ_NBR IN (2)
    AND DGT LIKE '8%2400'
    AND TALK > 0
    ) AS T1
    Any guesses as to what could be going wrong here?
    Rahman

  • Conversion failed when converting the varchar value to data type int error

    Hi, I am working on a report which is off of survey information and I am using dynamic pivot on multiple columns.
    I have questions like Did you use this parking tag for more than 250 hours? If yes specify number of hours.
    and the answers could be No, 302, 279, No and so on....
    All these answers are of varchar datatype and all this data comes from a partner application where we consume this data for internal reporting.
    When I am doing dynamic pivot I get the below error.
    Error: Conversion failed when converting the varchar value 'No' to data type int.
    Query
    DECLARE @Cols1 VARCHAR(MAX), @Cols0 VARCHAR(MAX), @Total VARCHAR(MAX), @SQL VARCHAR(MAX)
    SELECT @Cols1 = STUFF((SELECT ', ' + QUOTENAME(Question) FROM Question GROUP BY Question FOR XML PATH('')),1,2,'')
    SELECT @Cols0 = (SELECT ', COALESCE(' + QUOTENAME(Question) + ',0) as ' + QUOTENAME(Question) FROM Question GROUP BY Question FOR XML PATH(''))
    SET @SQL = 'SELECT QID, QNAME' + @Cols0 + '
    FROM (SELECT QID, QNAME, ANSWERS, Question
    FROM Question) T
    PIVOT (MAX(ANSWERS) FOR Question IN ('+@Cols1+')) AS P'
    EXECUTE (@SQL)
    I am using SQL Server 2008 R2.
    Please guide me to resolve this.
    Thanks in advance..........
    Ione

    create table questions (QID int, QNAME varchar(50), ANSWERS varchar(500), Question varchar(50))
    Insert into questions values(1,'a','b','c'), (2,'a2','b2','c2')
    DECLARE @Cols1 VARCHAR(MAX), @Cols0 VARCHAR(MAX), @Total VARCHAR(MAX), @SQL VARCHAR(MAX)
    SELECT @Cols1 = STUFF((SELECT ', ' + QUOTENAME(Question) FROM Questions GROUP BY Question FOR XML PATH('')),1,2,'')
    SELECT @Cols0 = (SELECT ', COALESCE(' + QUOTENAME(Question) + ',''0'') as ' + QUOTENAME(Question) FROM Questions GROUP BY Question FOR XML PATH(''))
    SET @SQL = 'SELECT QID, QNAME' + @Cols0 + '
    FROM (SELECT QID, QNAME, ANSWERS, Question
    FROM Questions) T
    PIVOT (MAX(ANSWERS) FOR Question IN ('+@Cols1+')) AS P'
    EXECUTE (@SQL)
    drop table questions

  • Error on select when using value converted from varchar to integer (with isnumeric in where)

    Hi,
    Why is it, that when I convert a varchar into integer and filter it to numeric only that I get the Error 'Conversion failed when converting the nvarchar value '...' to data type int.'
    Here is a short SQL witch shows the Error:
    create table tTest(ID int, sText nvarchar(15))
    insert into tTest
    select 1, null
    insert into tTest
    select 2, 'q'
    go
    select distinct ID, sText, convert(int,sText) AS ID2 from tTest where isnumeric(sText) = 1
    go
    SELECT DISTINCT TOP 100 PERCENT
    ID
    FROM
    (select distinct ID, sText, cast(sText as int) AS ID2 from tTest where isnumeric(sText) = 1) v1
    WHERE
    id2 = 1
    go
    drop table tTest
    As a workaround I replaced the case with 'cast(case when isnumeric(sText) = 1 then sText else null end as int)', but this rater unexpected.
    It works fine in a short query, but if I create a view with the SQL from V1 then the error is unexpected, since I only know that if I view the source of the view

    >'cast(case when isnumeric(sText) = 1 then sText else null
    ISNUMERIC is not 100% accurate.
    BOL: "ISNUMERIC returns 1 for some characters that are not numbers, such as plus (+), minus (-), and valid currency symbols such as the dollar sign ($). For a complete list of currency symbols, see money and smallmoney (Transact-SQL)."
    LINK: http://technet.microsoft.com/en-us/library/ms186272.aspx
    ISNUMERIC examples:
    http://sqlusa.com/bestpractices/isnumeric/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Error on console : WS data binding error, weblogic 9.2

    Hi ,
    Any idea why we getting these kind of errors on console when we deploy Ears on Weblogic server 9.2 .
    Here we are using Producer Consumer concept (wsrp).
    +<WS data binding error>Ignoring element declaration {urn:oasis:names:tc:wsrp:v1:+
    types}releaseSessionsResponse because there is no entry for its type in the JAXRPC mapping file.
    +<WS data binding error>Ignoring element declaration {urn:oasis:names:tc:wsrp:v1:+
    types}initCookieResponse because there is no entry for its type in the JAXRPC ma
    pping file.
    +<WS data binding error>Ignoring element declaration {urn:oasis:names:tc:wsrp:v1:+
    types}getPortletPropertyDescriptionResponse because there is no entry for its ty
    pe in the JAXRPC mapping file.
    same like this many
    Regards

    Hello,
    I've never seen those errors before, but I would guess that you are missing some library modules from your web-app's WEB-INF/weblogic.xml or ear's APP-INF/weblogic-application.xml. Are you seeing these errors on the producer or the consumer?
    Kevin

  • Failed to get value of the "Attachments" column after my Edit Form customization in share point 2010

    Hi,
    I am trying to customize the Edit Form in sharepoint 2010 .After my customization when i click on save it is giving below error.
    Failed
    to get value of the "Attachments" column from the "Attachments" field type control.  See details in log. Exception message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) "
    Every thing works fine if i  uncheck the Attachments property of the custom list.But i would need user to allow add attachments to the list.Could you
    help me to resolve  this issue.

    Hi,
    It would be better if you could provide the steps in details about how you customize your Edit Form.
    Anyway, you can take a look at the similar thread below, there is someone stuck with the similar issue before:
    http://social.technet.microsoft.com/Forums/en-US/d60e2a8e-575d-4b3c-959f-2a6a2b1364cf/failed-to-get-value-of-the-attachments-column?forum=sharepointcustomizationlegacy
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB)

    SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB)
    SELECT    
    CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
    WHEN T0.DocStatus = 'C' THEN 'CLOSED'  END  AS 'Document Status',
    T0.DocDate AS 'Posting Date',
    T0.DocNum AS 'Doc.No',
    T0.NumAtCard,
    T0.TransId AS 'Trans. No.',
    T0.Comments AS 'Remarks',
    T0.CardCode AS 'Offset Acct',
    T0.CardName AS 'Offset Acct Name',
    sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
    T3.DueDate AS 'Cheque Date',
    T3.CheckSum AS 'Amount'
    FROM         ODPO AS T0 LEFT OUTER JOIN
                          VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
         OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
                          VPM1 AS T3 ON T2.DocEntry = T3.DocNum
    where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'

    Hi,
    Try this:
    SELECT   
    CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
    WHEN T0.DocStatus = 'C' THEN 'CLOSED'  END  AS 'Document Status',
    T0.DocDate AS 'Posting Date',
    T0.DocNum AS 'Doc.No',
    T0.NumAtCard,
    T0.TransId AS 'Trans. No.',
    T0.Comments AS 'Remarks',
    T0.CardCode AS 'Offset Acct',
    T0.CardName AS 'Offset Acct Name',
    sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
    T3.DueDate AS 'Cheque Date',
    T3.CheckSum AS 'Amount'
    FROM         ODPO  T0 LEFT OUTER JOIN
                          VPM2  T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
    LEFT OUTER JOIN
         OVPM  T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
                          VPM1  T3 ON T2.DocEntry = T3.DocNum
    where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
    group by T0.DocStatus,T0.DocDate ,
    T0.DocNum ,
    T0.NumAtCard,
    T0.TransId ,
    T0.Comments ,
    T0.CardCode,
    T0.CardName ,
    T0.WTSum ,
    T3.DueDate ,
    T3.CheckSum
    Thanks & Regards,
    Nagarajan

  • I bought the adobe expert PDF.  Got error message failed to be converted ?

    I bought the adobe expert PDF.  Got error message failed to be converted when I tried to convert PDF to Word? What did I do wrong?                 

    See if any of the articles here help: http://forums.adobe.com/community/exportpdf?view=documents
    You can also try to contact Adobe Customer Support via http://helpx.adobe.com/contact.html?product=export-pdf
    [topic moved to ExportPDF forum]

  • Error-"File failed to be converted using Adobe ExportPDFonline"........???

    Just purchased a license and all was going swimmingly when all of a sudden this happened.
    I've managed to convert 4 out of 5 pdf's to docx.  The error message pops up with no suggestion
    as to what went wrong so all I can do is click ok and stare blanky at the screen.  Any ideas out
    there?  Thanks is advance.

    Hi David,
    Thank you for responding.
    I exported each page of the brochure individually and that worked.  Unfortunately, some of the items appeared to be corrupt when opened in Word. 
    If you would like to have a look I could send the pdf.
    Regards,
    Miren
    Date: Fri, 20 Jan 2012 11:07:16 -0700
    From: [email protected]
    To: [removed by moderator]
    Subject: Re: Error-"File failed to be converted using Adobe ExportPDFonline"........??? Error-"File failed to be converted using Adobe ExportPDFonline"........???
    Re: Error-"File failed to be converted using Adobe ExportPDFonline"........??? created by dave_m_k in Adobe ExportPDF - View the full discussion
    Good day,
    Are you still encountering this problem?  I've not heard of this behavior that you're describing, but hopefully we can get to the bottom of what's happening.
    Kind regards,
    David
    Acrobat Community Manager
    Adobe Systems
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: Error-"File failed to be converted using Adobe ExportPDFonline"........???
    To unsubscribe from this thread, please visit the message page at Re: Error-"File failed to be converted using Adobe ExportPDFonline"........???. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe ExportPDF by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • ActionScript 3.0: Error #1034: Type Coercion failed: cannot convert displayObject$ to DefaultPackage

    I'm a student I have a final project want to deliver it after two days.
    I'm making a drag and drop game, I watched a tutorial to do that.
    But after ending coding I faced a weird error!
    I've I checked that my code is the same as the code in the tutorial.
    This is the Debug error report:
        Attempting to launch and connect to Player using URL E:\FL\ActionScript\Drag and Drop Project\DragAndDrop.swf
        [SWF] E:\FL\ActionScript\Drag and Drop Project\DragAndDrop.swf - 87403 bytes after decompression
        TypeError: Error #1034: Type Coercion failed: cannot convert paper1$ to DragDrop.
                  at Targets()[E:\FL\ActionScript\Drag and Drop Project\Targets.as:23]
    My `.fla` File is containing 12 Objects to drag and another 12 Objects to drop on it.
    The idea here is when drop the Object on the target the Object will become invisible and the target become visible (in `.fla` file `target alpha = 0`).
    I made two classes:
    DragDrop.as : for the objects that I'm going to drag.
    Targets.as  : for the targets that I'm going to drop Objects on it.
    Note: match function is to animate "GameOver" MovieClip When complete the game.
    DragDrop.as:
        package
                  import flash.display.*;
                  import flash.events.*;
                  public class DragDrop extends Sprite
                            var origX:Number;
                            var origY:Number;
                            var target:DisplayObject;
                            public function DragDrop()
                                      // constructor code
                                      origX = x;
                                      origY = y;
                                      addEventListener(MouseEvent.MOUSE_DOWN, drag);
                                      buttonMode = true;
                            function drag(evt:MouseEvent):void
                                      stage.addEventListener(MouseEvent.MOUSE_UP, drop);
                                      startDrag();
                                      parent.addChild(this);
                            function drop(evt:MouseEvent):void
                                      stage.removeEventListener(MouseEvent.MOUSE_UP, drop);
                                      stopDrag();
                                      if(hitTestObject(target))
                                                visible = false;
                                                target.alpha = 1;
                                                Object(parent).match();
                                      x = origX;
                                      y = origY;
    Targets.as:
        package
                  import flash.display.*;
                  import flash.events.*;
                  public class Targets extends MovieClip
                            var dragdrops:Array;
                            var numOfMatches:uint = 0;
                            var speed:Number = 25;
                            public function Targets()
                                      // constructor code
                                      dragdrops = [paper1,paper2,paper3,paper4,paper5,paper6,
                                                                     paper7,paper8,paper9,paper10,paper11,paper12,];
                                      var currentObject:DragDrop;
                                      for(var i:uint = 0; i < dragdrops.length; i++)
                                                currentObject = dragdrops[i];
                                                currentObject.target = getChildByName(currentObject.name + "_target");
                            public function match():void
                                      numOfMatches++;
                                      if(numOfMatches == dragdrops.length)
                                                win.addEventListener(Event.ENTER_FRAME, winGame);
                            function winGame(event:Event):void
                                      win.y -= speed;
                                      if(win.y <= 0)
                                                win.y = 0;
                                                win.removeEventListener(Event.ENTER_FRAME, winGame);
                                                win.addEventListener(MouseEvent.CLICK, clickWin);
                            function clickWin(event:MouseEvent):void
                                      win.removeEventListener(MouseEvent.CLICK, clickWin);
                                      win.addEventListener(Event.ENTER_FRAME, animateDown);
                                      var currentObject:DragDrop;
                                      for(var i:uint = 0; i < dragdrops.length; i++)
                                                currentObject = dragdrops[i];
                                                getChildByName(currentObject.name + "_target").alpha = 0;
                                                currentObject.visible = true;
                                      numOfMatches = 0;
                                      addChild(win);
                            function animateDown(event:Event):void
                                      win.y += speed;
                                      if(win.y >= stage.stageHeight)
                                                win.y = stage.stageHeight;
                                                win.removeEventListener(Event.ENTER_FRAME, animateDown);
    ...Thanks

    Thank you very much for replying.
    - dragdrops represents: the dragable objects.
    - Targets obtaining the dropable objects by hitTestObject, then the dropable objects visible is turned to false, & the target visible turned to true.
    Dragable objects is a 12 elements all of them have an instance names: paper1....paper12.
    When I focused to the project I noticed that I forget to give the dragable objects an instance names!
    after making the instance names to them, a new error occures:
    E:\FL\ActionScript\Drag and Drop Project\Targets.as, Line 11
    1046: Type was not found or was not a compile-time constant: paper1.
    This error is continuing to paper2, paper3.....paper12 !
    Please download my project, I must deliver it to my college in 24/12. I will never forget your favor. thanks.
    https://www.dropbox.com/s/8mdg5w17vvryzso/Drag%20and%20Drop%20Project.rar | 715KB

  • Wm_Valid: Fail to convert to internal representation error while inserting

    Hi,
    I'm trying to execute an insert via XmlCommand. The table is created with this statement:
    create table testtable4 (testtable4_pk number, mydate date, myts timestamp with time zone, wm_valid wm_period);
    I have a problem while inserting on a simple table with wm_period field. The c# code is the following:
    OracleConnection oraConnection;
    OracleCommand insertCommand;
    string[] KeyColumnsList = null;
    string[] UpdateColumnsList = null;
    string xml1 = "<?xml version=\"1.0\"?>\n" +
    "<ROWSET>\n" +
    "<MYROW num = \"1\">\n" +
    "<TESTTABLE4_PK>1</TESTTABLE4_PK><MYDATE>2012-01-20T00:00:00.00000</MYDATE><MYTS>01-01-11T00:00:00.000000000 +00:00</MYTS>" +
    "</MYROW>\n" +
    "</ROWSET>\n";
    string xml2 = "<?xml version=\"1.0\"?>\n" +
    "<ROWSET>\n" +
    "<MYROW num = \"2\">\n" +
    "<TESTTABLE4_PK>2</TESTTABLE4_PK><MYDATE>2012-01-20T00:00:00.00000</MYDATE><MYTS>01-01-11T00:00:00.000000000 +00:00</MYTS><WM_VALID><VALIDFROM>01-01-11T00:00:00.000000000 +00:00</VALIDFROM></WM_VALID>" +
    "</MYROW>\n" +
    "</ROWSET>\n";
    KeyColumnsList = new string[1];
    KeyColumnsList[0] = "TESTTABLE4_PK";
    UpdateColumnsList = new string[4];
    UpdateColumnsList[0] = "TESTTABLE4_PK";
    UpdateColumnsList[1] = "MYDATE";
    UpdateColumnsList[2] = "MYTS";
    UpdateColumnsList[3] = "WM_VALID";
    try
    string ConnString = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=" + host + ")(PORT=" + port + ")))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=" + sid + ")));User Id=" + username + ";Password=" + password + ";";
    oraConnection = new OracleConnection(ConnString);
    oraConnection.Open();
    using (OracleCommand cmd = new OracleCommand())
    cmd.Connection = oraConnection;
    cmd.CommandText = "alter session set NLS_DATE_FORMAT = 'YYYY-MM-DD\"T\"HH24:MI:SS.SSSSS'";
    cmd.ExecuteNonQuery();
    cmd.CommandText = "alter session set NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD\"T\"HH24:MI:SS.SSSSS'";
    cmd.ExecuteNonQuery();
    cmd.CommandText = "alter session set NLS_TIMESTAMP_TZ_FORMAT = 'YYYY-MM-DD\"T\"HH24:MI:SSXFF TZH:TZM'";
    cmd.ExecuteNonQuery();
    insertCommand = new OracleCommand();
    insertCommand.Connection = oraConnection;
    insertCommand.XmlCommandType = OracleXmlCommandType.Insert;
    insertCommand.XmlSaveProperties.KeyColumnsList = KeyColumnsList;
    insertCommand.XmlSaveProperties.RowTag = "MYROW";
    insertCommand.XmlSaveProperties.Table = "TESTTABLE4";
    insertCommand.XmlSaveProperties.UpdateColumnsList = UpdateColumnsList;
    insertCommand.XmlSaveProperties.Xslt = null;
    insertCommand.XmlSaveProperties.XsltParams = null;
    //this works
    insertCommand.CommandText = xml1;
    insertCommand.ExecuteNonQuery();
    //this fails
    insertCommand.CommandText = xml2;
    insertCommand.ExecuteNonQuery();
    insertCommand.Dispose();
    oraConnection.Close();
    oraConnection.Dispose();
    catch (Exception err)
    this.WriteLogErr("ERROR: " + err.Message);
    With the first ExecuteNonQuery I attempt an insert of a data value and a timestamp with timezone value. The execution is ok (xml1).
    When the second ExecuteNonQuery is run (with the value of wm_valid), the execution fails with this error:
    ERROR: ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException: 'java.sql.SQLException: Fail to convert to internal representation: 01-01-11T00:00:00.000000000 +00:00' encountered during processing ROW element 0. All prior XML row changes were rolled back. in the XML document.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 111
    ORA-06512: at line 1
    The stored procedure at row 111 calls this Java method:
    oracle.xml.sql.dml.OracleXMLStaticSave.insertXML(int, java.lang.String) return int
    The structure of complex data type wm_period is:
    CREATE OR REPLACE TYPE wm_period AS OBJECT (
    validfrom TIMESTAMP WITH TIME ZONE,
    validtill TIMESTAMP WITH TIME ZONE);
    The problem is: I am able to insert a timestamp with timezone value (myts) but I'm not able to insert a wm_valid that contains two values of the same type...
    This works: <MYTS>2011-01-01T00:00:00.00000</MYTS>
    This fails: <WM_VALID><VALIDFROM>2011-01-01T00:00:00.00000</VALIDFROM></WM_VALID>
    I also tried to change the format of NLS_TIMESTAMP_TZ_FORMAT with a lot of various setup, but nothing changed.
    Thanks in advance for your precious help.
    Best Regards,
    Mario.

    Hi jschell ...thnx for ur reply......
    the getString(2) parameter is just avarchar which
    return the error from the procedure, if its ok,then
    the query is executed properly..its just a check I've
    kept to jump into the next step.If the status is OK,
    then I'm retrieving the values from the cursor. I'm
    getting right value for this parameter.I wasn't questioning the logic. I understand what you are doing.
    However JDBC drivers can have problems when items are retrieved out of order.
    You might also try switching driver types. If the thin works and oci doesn't (or visa-versa) then you know it is a driver problem and you will just have to try a work around.

  • "Failed to convert to native blob" error

    Can someone else me?  Whenever I go into the slideshow module, I get the error "failed to convert to native blog"  Any suggestions?

    Success!  I have been having this issue with the slideshow module for over a year.  The issue was that I had an old identity plate that was trying to use a font that I no longer have installed.  I opened the identity plate and updated it to use a font that I have currently.  Now I can finally use the slideshow module again!  Adobe - if you are listening - it would be nice to have a more descriptive error message when this happens, or to alert the user when lightroom starts that the font is now missing and will be replaced or similar.  Thanks all!

Maybe you are looking for

  • Message in service order in crm

    Hi, I want to debugg the service order. After creation of service order, iam able to see the log. If click the log, a pop window appears with warranty check. I want to to debugg the program to find the action. can you tell table messages log, and act

  • Unwanted frame blending look after transcode

    For some reason, When I burn a DVD in Encore and play it on a TV or a computer (anything) it seems to have a frame blending look where if you pause the DVD at any point, you will see two frames blended together like they are both at 50% opacity.  I h

  • Switch log file

    Hi Everyone, We are using the 9i database and during the import, we have temporarily added 2 new log groups (Each 2 gb in size) to improve the import performance. After the completion of the import we have a plan to drop those newly added log groups.

  • FIM Reporting alternative

    Hi, So we are aware of the FIM Reporting option using SCSM & SCDW. Do we need to use System Centre? I am not really that clued up on SC or SQL ...so what are other alternatives if we need 1) FIM Reporting 2) Long term storage of records for audit pur

  • Consecutive salesorder and delivery creation error

    Hi all, I am using two functions one to create salesorder and one for delivery which i use the salesorder number which is created b4. These are : 'BAPI_SALESORDER_CREATEFROMDAT2' 'RV_DELIVERY_CREATE' They work great when i use them seperately. (Not i