Convert to JPEG action fails when packaged as application
I am having problems with an automator workflow I have set up. The gist of the process is that I specify some images, both tiff and jpeg (or possibly all tiff), and the workflow copies and resizes them into thumbnail, medium, and full size images, and then filters out any images that were already JPEG, and converts the rest to JPEGs, using the "Change type of images" action. It then uploads them to a webspace to be used by a program that only accepts JPEGs.
This all works wonderfully, until I package the workflow as an application instead of leaving it as an open workflow. When I do that, the workflow processes normally, and says it completed successfully, but uploads the TIFF files, without having converted them to JPEG. I've watched the folder actions, and it appears to do something during the convert to JPEG step, but simply ends up recreating the TIFF.
This happens both when the filter step is inserted (that sorts TIFFs and JPEGs) and when it is removed, but again, only when the workflow is packaged as an application.
I have attempted to mask the workflow by creating a second workflow which simply runs the first, and then packaging that one as an application, but when the second workflow is run, either as a workflow or as an app, it appears to produce the same problem.
This happens in both 10.4 and 10.5, on multiple computers.
Any help would be appreciated.
You don't mention specifically what you are doing, but if it is something like using "Watch Me Do", that is notoriously unreliable. If you are using "Run Shell Script", the action runs with a default environment and does not contain anything from your user setup, such as $PATH.
Similar Messages
-
Big ANE causes java.lang.OutOfMemoryError when packaging Air application
Hi,
I'm working on an Air mobile game that uses ANE on iOS and Android. I'm in the process of creating a new ANE and face a problem on the Android side.
My ANE requires an external framework (Burstly, http://burstly.com). If I just link the Android project to Burstly's .jar file, I get errors in "adb logcat", like:
I/dalvikvm(16074): Could not find method com.burstly.lib.BurstlySdk.init, referenced from method com.freshplanet.burstly.functions.InitBurstlyFunction.call
In order to include Burstly's files in my own .jar, I unzip Burstly's .jar file and repackage them with my compiled code in a unique .jar (following advice on http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries).
Problem: Burstly's SDK includes thousands of files. It doesn't create any trouble when packaging the ANE, but when I try to package the Air application, I get the following error:
dx tool failed:
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at com.android.dx.util.IntList.<init>(IntList.java:87)
at com.android.dx.rop.code.RopMethod.calcPredecessors(RopMethod.java:174)
at com.android.dx.rop.code.RopMethod.labelToPredecessors(RopMethod.java:95)
at com.android.dx.ssa.back.IdenticalBlockCombiner.process(IdenticalBlockCombiner.java:74)
at com.android.dx.ssa.back.SsaToRop.convert(SsaToRop.java:132)
at com.android.dx.ssa.back.SsaToRop.convertToRopMethod(SsaToRop.java:76)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:103)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
at com.android.dx.command.dexer.Main.processClass(Main.java:299)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:278)
at com.android.dx.command.dexer.Main.access$100(Main.java:56)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:229)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
at com.android.dx.command.dexer.Main.processOne(Main.java:247)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
at com.android.dx.command.dexer.Main.run(Main.java:139)
at com.android.dx.command.dexer.Main.main(Main.java:120)
at com.android.dx.command.Main.main(Main.java:89)
I read that the solution to eliminate this error is to give Java the parameters "-Xms...M -Xmx...M", with "..." being a high-enough number. Note that I'm working on a machine with 8GB of RAM. I tried to package the app in command line to be able to pass these parameters:
/usr/bin/java -Xms512M -Xmx4096M -jar "/Applications/Adobe Flash Builder 4.6/sdks/4.6.0air31/lib/adt.jar" -package -target apk -storetype pkcs12 -keystore [...].p12 Main.apk Main-app.xml Main.swf -extdir "/Users/alex/Documents/Adobe Flash Builder 4.6/.metadata/.plugins/com.adobe.flexbuilder.project.ui/ANEFiles/front-end-mobile/com.ado be.flexide.multiplatform.ios.platform"
But when I run a "ps -ef | grep java", I can see that adt runs another Java program (dx) without transmitting my -Xms -Xmx parameters:
/usr/bin/java -jar /Applications/Adobe Flash Builder 4.6/sdks/4.6.0air31/lib/android/bin/dx.jar --dex --output=/private/var/folders/t9/3kw74cx14nv2xg9tgmx9m1jc0000gp/T/b5757d93-1e93-439c-8f6d -c93e4933f6f1/outputDEX.dex [... bunch of jars]
Any idea to solve this issue?
Thanks
AlexI solved my issue by setting the _JAVA_OPTIONS environment variable. (Note: there are two underscores)
I added the following line to my .bash_profile:
export _JAVA_OPTIONS="-Xms1024m -Xmx4096m -XX:MaxPermSize=512m"
Now everytime a Java program is launched from the command line, I see the following message:
Picked up _JAVA_OPTIONS: -Xms1024m -Xmx4096m -XX:MaxPermSize=512m
And my application packaging runs just fine now.
I still have an issue though: this trick solved the problem for packaging the app from the command line, but the _JAVA_OPTIONS are not picked up when packaging from Flash Builder, so it still crashes there.
Note that my Adobe Flash Builder 4.6.ini contains the following options:
-Xms512m
-Xmx1676m
-XX:MaxPermSize=512m
-XX:PermSize=64m
1676m is the highest number I can put before Flash Builder refuses to launch. I'm not sure if these parameters are actually passed to the VM that runs de dx.jar program, or if it's just for the ActionScript compiler. But anyway my app packaging still crashes in Flash Builder.
If someone knows a way to force Flash Builder to pickup the _JAVA_OPTIONS set in the command line, let me know :-)
Thanks
Alex -
Deployment Failing when "Update post application" is enabled
Hello! I keep receiving this error during imaging when I have the option enable to do windows updates post applications installed. This has always worked in the past but now it has stopped working. Any thoughts??
Hello! I keep receiving this error during imaging when I have the option enable to do windows updates post applications installed. This has always worked in the past but now it has stopped working. Any thoughts??
What do you have in your LocalGPOPAck? And do you have logs uploaded somewhere? Are you deploying Win 7/8.1?
If this post is helpful please click "Mark for answer", thanks! Kind regards -
I just update my AIR project for iOS from Adobe AIR 2.6 to Adobe AIR 3.1 (that comes with Flash Builder 4.6), than I always got an exception when packaging my application:
Error occurred while packaging the application:
Exception in thread "main" java.lang.NullPointerException
at adobe.abc.Nsset.match(Nsset.java:263)
at adobe.abc.Name.match(Name.java:555)
at adobe.abc.Symtab.getEntry(Symtab.java:37)
at adobe.abc.Symtab.get(Symtab.java:55)
at adobe.abc.Type.setNeedsArgumentsUpInheritanceHierarchy(Type.java:343)
at adobe.abc.Type.setNeedsArgumentsUptoRoot(Type.java:269)
at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:558)
at adobe.abc.GlobalOptimizer$InputAbc.resolveType(GlobalOptimizer.java:448)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:327)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
Compilation failed while executing : ADT
What is the cause of this error, so I can avoid it in my project before AIR team fix this?
Thank you.Hi Everyone,
I'm getting basically the same error. Are there any rules or guidelines that we are suppose follow when writing an app for iOS? Is there a way to know exactly where it is crashing? My apps are not MXML, only actionscript. Also I made sure I have no errors not even warnings in my SWF file, but still no go!
Getting the same error.
Exception in thread "main" java.lang.NullPointerException
at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6944)
at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler
.java:472)
at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
Compilation failed while executing : ADT
regards,
Keith -
Testing connector - Action Failed error
Hi experts
I have created a connector but when I try to test it, I get "Action failed error". I have done everything according to Page 104 from "Configuration Guide - SAP GRC Access Control 5.3". This is what is mentioned
Parameter Names Parameters Values
ASSIGN_GROUPS:OC sapgroup
ASSIGN_ROLES:OC saprole
CHANGE_USER:OC sapuser
CREATE_USER:OC sapuser
CREATE_USER:password password
DELETE_USER:OC sapuser
LOCK_USER:OC sapuser
LOCK_USER:islocked true
RESET_PASSWORD:OC sapuser
RESET_PASSWORD:password password
ROLESEARCH_URI http://<server>:<port>/UserRoleSearchForAESe
rvice_5_3/Config1?wsdl&style=document
ROLESEARCH_URI_USERNAME username
ROLESEARCH_URI_PASSWORD password
ROLE_DATA_SOURCE ROLE.UME_ROLE_PERSISTENCE.un:
SCHEMA_ID SAPprincipals
UNLOCK_USER:OC Sapuser
UNLOCK_USER:islocked false
USER_DATA_SOURCE Portal UME connected to R/3:
USER_DATA_USER.R3_DATASOURCE.
Portal UME connected to LDAP:
USER.CORP_LDAP.
Portal using local UME:
USER.PRIVATE_DATASOURCE.un:
In my current CUP configuration, I have made the USER_DATA_SOURCE as the UME DATASOURCE. I tried LDAP and R3 datasource too, the user id is system admin and it has the necessary authorization. I checked the period and colon punctuations too.
Any idea why it says "Action failed" when I am trying to test the connector?Can you please go to CC debugger and get values of table VIRSA_CC_SYSTEMC
and paste
Also please try to login with user id (if comm type, then test it in SM59... )
please confirm is VIRSANH is installed in Backend R/3 system.
Regards,
Surpreet -
Failed to package iOS AIR app with Air 3.6 beta
Hi
I was hoping I could get help with those error messages
Configuration to package for an iOS device
Here is the adt command
c:\program files (x86)\jetbrains\intellij idea 12.0\jre\jre\bin\java.exe -Dapplication.home=D:\flex_sdk_4.6 -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar D:\flex_sdk_4.6\lib\adt.jar -package -target ipa-test-interpreter -storetype PKCS12 -keystore D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\certificate.p12 -storepass xxxxx -provisioning-profile D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\development.mobileprovision D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\iOS_device.ipa D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml -extdir D:\Headr\trunk\headr-app\headr-mobile\app\ane -C D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug iOS_device.swf -C D:\Headr\trunk\headr-app\headr-mobile\app\src data -C D:\Headr\trunk\headr-app\headr-mobile\app\src icons -C D:\Headr\trunk\headr-app\headr-mobile\app\src [email protected] -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default.png
And error
Failed to package AIR application iOS_device.ipa:
D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml: error 302: Root content HeadrApplication.swf is missing from package
Configuration for the emulator
Here is the adt command
c:\program files (x86)\jetbrains\intellij idea 12.0\jre\jre\bin\java.exe -Dapplication.home=D:\flex_sdk_4.6 -Xmx384m -Dsun.io.useCanonCaches=false -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar D:\flex_sdk_4.6\lib\adt.jar -package -target ipa-test-interpreter -storetype PKCS12 -keystore D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\certificate.p12 -storepass xxxxxx -provisioning-profile D:\Headr\trunk\headr-app\headr-mobile\app\ios_profiles\development.mobileprovision D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication.ipa D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug\HeadrApplication-app.xml -extdir D:\Headr\trunk\headr-app\headr-mobile\app\ane -C D:\Headr\trunk\headr-app\headr-mobile\app\bin-debug HeadrApplication.swf -C D:\Headr\trunk\headr-app\headr-mobile\app\src data -C D:\Headr\trunk\headr-app\headr-mobile\app\src icons -C D:\Headr\trunk\headr-app\headr-mobile\app\src [email protected] -C D:\Headr\trunk\headr-app\headr-mobile\app\src Default.png
And error
Failed to package AIR application HeadrApplication.ipa:
unexpected failure: null
java.lang.NullPointerException
at com.adobe.air.ipa.IPAPackager.processExtensions(IPAPackager.java:314)
at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:65)
at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:257)
at com.adobe.air.ADT.parseArgsAndGo(ADT.java:572)
at com.adobe.air.ADT.run(ADT.java:419)
at com.adobe.air.ADT.main(ADT.java:469)Hi Pahup
My application.xml does say 3.6 at the moment.
First couple of lines from application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/3.6">
But I am using 2 ANEs (one is ours but one is a third party that 'm afraid I can't change)
Their extension.xml look like below
My ANE
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
<id>com.headr.HeadrNativeExtensions</id>
<versionNumber>1</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
<nativeLibrary>libHeadrNativeExtensionsIOS.a</nativeLibrary>
<initializer>ExtInitializer</initializer>
<finalizer>ExtFinalizer</finalizer>
</applicationDeployment>
</platform>
<platform name="default">
<applicationDeployment/>
</platform>
</platforms>
</extension>
Third party ANE
<extension xmlns="http://ns.adobe.com/air/extension/3.5">
<id>com.milkmangames.extensions.GoViral</id>
<versionNumber>2</versionNumber>
<platforms>
<platform name="iPhone-ARM">
<applicationDeployment>
<nativeLibrary>libGoViralAPI.a</nativeLibrary>
<initializer>MmgGoViralApiExtInitializer</initializer>
<finalizer>MmgGoViralApiExtFinalizer</finalizer>
</applicationDeployment>
</platform>
<platform name="Android-ARM">
<applicationDeployment>
<nativeLibrary>GoViralExtensionAPI.jar</nativeLibrary>
<initializer>com.milkmangames.extensions.android.GoViralExtension</initializer>
<finalizer>com.milkmangames.extensions.android.GoViralExtension</finalizer>
</applicationDeployment>
</platform>
<platform name="default">
<applicationDeployment>
</applicationDeployment>
</platform>
</platforms>
</extension>
Please let me know if there is any other workaround or if you see anything else that might be wrong in my above files.
Melissa -
DTEXEC does not fail when SSIS package fails
I need to run my SSIS 2012 packages through the catalog with DTEXEC. This works very well, except that if my SSIS package fails, DTEXEC does not fail. I need DTEXEC to fail, so my scheduler knows that there is an error.
I use the following command:
dtexec /ISServer "\SSISDB\MyFolder\MyProject\MyPackage.dtsx" /Ser MyServer /Par $Package::Partition;201412 /Env 5
When I check the status of the run in the Catalog, it is failed.
When I used SSIS 2008, I had no problem getting DTEXEC to fail when the packages failed.I've had the same problem, and come up with the following prototype for a SQL Script which I run in our JAMS Enterprise Scheduler. It uses SSISDB stored procedures to start the SSIS package and polls every 5 seconds to report any messages, and final
status code of the package. JAMS parameters are delimited by << >> symbols, and will need to be changed for your scheduler/batch process. I guess the script could be converted to a stored procedure. I'm also hoping it will work with SQL High
Availability groups to ensure the SSIS package runs on the server that's hosting the active database.
DECLARE @execution_id BIGINT
DECLARE @status INT= 1
DECLARE @Event_Message_id BIGINT= 0
DECLARE @Last_Event_Message_id BIGINT= 0
DECLARE @message_time DATETIME2(7)
DECLARE @message NVARCHAR(MAX)
--Create a SSIS execution for the required SSIS package and return the execution_id
EXEC [SSISDB].[catalog].[create_execution] @package_name = N'<<pPackageName>>.dtsx',
@execution_id = @execution_id OUTPUT, @folder_name = N'<<pSSISFolderName>>',
@project_name = N'<<pSSISProjectName>>', @use32bitruntime = <<p32Bit>>, @reference_id = NULL
RAISERROR('Starting SSIS package <<pPackageName>> with execution_id %I64d on server %s',0,0,@execution_id,@@SERVERNAME) WITH NOWAIT
--Set the logging level 0-none, 1-basic (recommended), 2-performance, 3-verbose
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id,
@object_type = 50, @parameter_name = N'LOGGING_LEVEL',
@parameter_value = <<pLogging_Level>>
--Start the package executing
EXEC [SSISDB].[catalog].[start_execution] @execution_id
WHILE @status IN ( 1, 2, 5, 8 ) --created (1), running (2), canceled (3), failed (4), pending (5), ended unexpectedly (6), succeeded (7), stopping (8), and completed (9).
BEGIN
WAITFOR DELAY '00:00:05'
--Get the status to see later if we've finished
SELECT @status = status
FROM SSISDB.catalog.executions
WHERE execution_id = @execution_id
--Are there any event messages since we last reported any?
DECLARE curEventMessages CURSOR FAST_FORWARD
FOR
SELECT event_message_id ,
message_time ,
message
FROM SSISDB.catalog.event_messages
WHERE operation_id = @execution_id
AND event_message_id > @Last_Event_Message_id;
OPEN curEventMessages
FETCH NEXT FROM curEventMessages INTO @Event_Message_id, @message_time,
@message
WHILE @@FETCH_STATUS = 0
BEGIN
--We've found a message, so display it - watch out for % signs in the message, they'll cause an error if we don't replace them
SET @message = CONVERT(NVARCHAR(MAX), @message_time, 113)
+ ' ' + replace(@message,'%',' percent')
RAISERROR(@message,0,0) WITH NOWAIT
SET @Last_Event_Message_id = @Event_Message_id --Make a note that we've reported this message
FETCH NEXT FROM curEventMessages INTO @Event_Message_id,
@message_time, @message
END
CLOSE curEventMessages
DEALLOCATE curEventMessages
END
--@Status indicates that package execution has finished, so let's look at the outcome, and error if there's a problem
IF @status = 7
RAISERROR('Package Succeeded',0,0)
ELSE
IF @status = 9
RAISERROR('Package completed',0,0)
ELSE
IF @status = 3
RAISERROR('Package Cancelled',16,1)
ELSE
IF @status = 4
RAISERROR('Package failed (see error message above)',16,1)
ELSE
IF @status = 6
RAISERROR('Package ended unexpectedly',16,1)
ELSE
RAISERROR('Package ended with unknown status %i',16,1,@status) -
Conversion failed when converting date and/or time from character string
Hi experts,
I'm trying running a query in Microsoft Query but it gives the following error message:
"conversion failed when converting date and/or time from character string"
when asks me the data I'm inserting 31-01-2014
i've copy the query form the forum:
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1Hi,
The above error appears due to date format is differnt from SAP query generator and SQL server.
So you need convert all date in above query to SQL server required format.
Try to convert..let me know if not possible.
Thanks & Regards,
Nagarajan -
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
ENDYou 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 -
When building an app for the x86 platform, speech APIs fail when the x86 package is run on the desktop of an x64 system. You may see an error with the message "mod not found".
Use the Visual Studio Configuration Manager to retarget the app to x64 when running on an x64 system.
-
SSIS package fails when it is executed by procedure (2008)
Hi there,
I have a very anoying problem with SSIS. I've done new packages into same project, almost identical compared to old ones. They work well in visual studio, but I can't execute them using procedure. Old packages works just fine, but none of the new. Error
message is in the end of my story.
Visual Studio version is 9.0.30729.1 and SQL Server version is 10.0.4000.0. Is it possible, that these not not updated versions could cause this problem?
Package ProtectionLevel is DonSaveSensitive.
Br,
Ville
Error messages, when package is executed by procedure:
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 64-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
NULL
Started: 10:36:48 AM
Error: 2015-03-31 10:36:48.48
Code: 0xC0016016
Source:
Description: Failed to decrypt protected XML node
"DTS:Password" with error 0x8009000B "Key not valid for use in
specified state.". You may not be authorized to access this information.
This error occurs when there is a cryptographic error. Verify that
the correct key is available.
End Error
Progress: 2015-03-31 10:36:48.65
Source: Data Flow Task 1
Validating: 0% complete
End Progress
Progress: 2015-03-31 10:36:48.81
Source: Data Flow Task 1
Validating: 50% complete
End Progress
Progress: 2015-03-31 10:36:48.81
Source: Data Flow Task 1
Validating: 100% complete
End Progress
Progress: 2015-03-31 10:36:48.82
Source: Data Flow Task 1
Validating: 0% complete
End Progress
Progress: 2015-03-31 10:36:48.88
Source: Data Flow Task 1
Validating: 50% complete
End Progress
Progress: 2015-03-31 10:36:48.89
Source: Data Flow Task 1
Validating: 100% complete
End Progress
Progress: 2015-03-31 10:36:48.89
Source: Data Flow Task 1
Prepare for Execute: 0% complete
End Progress
Progress: 2015-03-31 10:36:48.89
Source: Data Flow Task 1
Prepare for Execute: 50% complete
End Progress
Progress: 2015-03-31 10:36:48.89
Source: Data Flow Task 1
Prepare for Execute: 100% complete
End Progress
Progress: 2015-03-31 10:36:48.95
Source: Data Flow Task 1
Pre-Execute: 0% complete
End Progress
Progress: 2015-03-31 10:36:49.03
Source: Data Flow Task 1
Pre-Execute: 50% complete
End Progress
Warning: 2015-03-31 10:36:49.03
Code: 0x80070003
Source: Data Flow Task 1 Destination - tb_month_standard_idx_table_exp_032013-082013_20140307_csv
[34]
Description: The system cannot find the path specified.
End Warning
Progress: 2015-03-31 10:36:49.28
Source: Error Msg
Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete
End Progress
Error: 2015-03-31 10:36:49.28
Code: 0xC020200E
Source: Data Flow Task 1 Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv [34]
Description: Cannot open the datafile
"D:\Procogs_export_validation\StandardSetup\tb_month_standard_idx_table_exp_032013-082013_20140307.csv".
End Error
Progress: 2015-03-31 10:36:49.29
Source: Error Msg
Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete
End Progress
Error: 2015-03-31 10:36:49.29
Code: 0xC004701A
Source: Data Flow Task 1 SSIS.Pipeline
Description: component "Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv" (34) failed
the pre-execute phase and returned error code 0xC020200E.
End Error
Progress: 2015-03-31 10:36:49.29
Source: Data Flow Task 1
Pre-Execute: 100% complete
End Progress
Progress: 2015-03-31 10:36:49.29
Source: Data Flow Task 1
Post Execute: 0% complete
End Progress
Progress: 2015-03-31 10:36:49.29
Source: Data Flow Task 1
Post Execute: 50% complete
End Progress
Progress: 2015-03-31 10:36:49.29
Source: Data Flow Task 1
Cleanup: 0% complete
End Progress
Progress: 2015-03-31 10:36:49.29
Source: Data Flow Task 1
Cleanup: 50% complete
End Progress
Progress: 2015-03-31 10:36:49.29
Source: Data Flow Task 1
Cleanup: 100% complete
End Progress
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 10:36:48 AM
Finished: 10:36:49 AM
Elapsed: 0.905 seconds
NULL<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>Hi,
That path is not in use?! Yes, it is in error, but not in package. Maybe it has been there before, but now I can't find it. Or actually, path is valid, but not the file name.
I had on error in package configuration file path, but here is the latest error message:
Br,
Ville
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 64-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
NULL
Started: 1:50:59 PM
Error: 2015-03-31 13:50:59.38
Code: 0xC0016016
Source:
Description: Failed to decrypt protected XML node
"DTS:Password" with error 0x8009000B "Key not valid for use in
specified state.". You may not be authorized to access this information.
This error occurs when there is a cryptographic error. Verify that
the correct key is available.
End Error
Progress: 2015-03-31 13:50:59.56
Source: Data Flow Task 1
Validating: 0% complete
End Progress
Progress: 2015-03-31 13:50:59.72
Source: Data Flow Task 1
Validating: 50% complete
End Progress
Progress: 2015-03-31 13:50:59.72
Source: Data Flow Task 1
Validating: 100% complete
End Progress
Progress: 2015-03-31 13:50:59.73
Source: Data Flow Task 1
Validating: 0% complete
End Progress
Progress: 2015-03-31 13:50:59.79
Source: Data Flow Task 1
Validating: 50% complete
End Progress
Progress: 2015-03-31 13:50:59.79
Source: Data Flow Task 1
Validating: 100% complete
End Progress
Progress: 2015-03-31 13:50:59.79
Source: Data Flow Task 1
Prepare for Execute: 0% complete
End Progress
Progress: 2015-03-31 13:50:59.79
Source: Data Flow Task 1
Prepare for Execute: 50% complete
End Progress
Progress: 2015-03-31 13:50:59.79
Source: Data Flow Task 1
Prepare for Execute: 100% complete
End Progress
Progress: 2015-03-31 13:50:59.86
Source: Data Flow Task 1
Pre-Execute: 0% complete
End Progress
Progress: 2015-03-31 13:50:59.92
Source: Data Flow Task 1
Pre-Execute: 50% complete
End Progress
Warning: 2015-03-31 13:50:59.92
Code: 0x80070003
Source: Data Flow Task 1 Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv [34]
Description: The system cannot find the path specified.
End Warning
Progress: 2015-03-31 13:51:00.17
Source: Error Msg
Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete
End Progress
Error: 2015-03-31 13:51:00.17
Code: 0xC020200E
Source: Data Flow Task 1 Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv [34]
Description: Cannot open the datafile
"D:\Procogs_export_validation\StandardSetup\tb_month_standard_idx_table_exp_032013-082013_20140307.csv".
End Error
Progress: 2015-03-31 13:51:00.17
Source: Error Msg
Executing query "insert into
focusbase.dbo.tb_ctrl_package_error_ms...".: 100% complete
End Progress
Error: 2015-03-31 13:51:00.17
Code: 0xC004701A
Source: Data Flow Task 1 SSIS.Pipeline
Description: component "Destination -
tb_month_standard_idx_table_exp_032013-082013_20140307_csv" (34) failed
the pre-execute phase and returned error code 0xC020200E.
End Error
Progress: 2015-03-31 13:51:00.17
Source: Data Flow Task 1
Pre-Execute: 100% complete
End Progress
Progress: 2015-03-31 13:51:00.17
Source: Data Flow Task 1
Post Execute: 0% complete
End Progress
Progress: 2015-03-31 13:51:00.17
Source: Data Flow Task 1
Post Execute: 50% complete
End Progress
Progress: 2015-03-31 13:51:00.17
Source: Data Flow Task 1
Cleanup: 0% complete
End Progress
Progress: 2015-03-31 13:51:00.17
Source: Data Flow Task 1
Cleanup: 50% complete
End Progress
Progress: 2015-03-31 13:51:00.17
Source: Data Flow Task 1
Cleanup: 100% complete
End Progress
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 1:50:59 PM
Finished: 1:51:00 PM
Elapsed: 0.858 seconds
NULL<o:p></o:p> -
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 have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?
Once again, my thanks for your assistance. If I may impose on your generosity one more time, if I understand you correctly if I create a document on Word or WordPerfect, print it and scan it to create a pdf, the search function will not work. But, if I create the pdf document in Word the search function will work. Unfortunately, I am not sure how I create a pdf document in Word other than by printing it and scanning it. Could you please explain.
William B. Kohn, Esq.
General Counsel
Paul V. Profeta & Associates, Inc.
769 Northfield Avenue
Suite 250
West Orange, New Jersey 07052
(973) 325 - 1300
(973) 325 - 0376 (Facsimile)
[email protected]<mailto:[email protected]> -
I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?
You know that you lost the layers when you saved it as a jpeg, right? But you're saying you can't add layers to the jpeg now when it's open in the editor? Go to Image>mode and be sure it's RGB, for starters. Are all the commands in the Layer menu grayed out?
-
SIS package works in development environment but fails when job scheduler executes, file path invalid
Relatively simple package to get OLE-DB connection to MS FoxPro 9.0 DB
The failure in the job log states that the path is invalid its a network path (\\192.168.1.xxx\foldername) this has been run several ways with the remote computer being mapped as a network drive and through the \\ notation described above.
Thinking it was a security issue between the SQL agent account and my account I tested by subsitution myself as a proxy account for the agent when running this job, again same result failed on network path.
One issue I see is that the remote computer is running Server 2000 (legacy software incompatable with newer versions)
Is it possible that this is a security issue, since if i understand correctly the current MS domain security model didn't exist until Server 2003.Hi REIData,
Have you got the issue resolved? Based on your description, please make sure the target folder is shared properly. If the computer on which the SQL Server Agent job runs doesn’t join the domain as the server that hosts the shared folder, you have to share
the folder with everyone by adding “Everyone” to the people list on the File Sharing page of the folder and assign "Read/Write" permission to it.
Regards,
Mike Yin
TechNet Community Support
Maybe you are looking for
-
Realm authentication not working for usergroups
Hi... I have a server running 10.4.3 (8F46). I'm running one web site, and also some AFP shares. This server is bound to our corporate Active Directory server. I'm positive the AD integration works because my AFP shares use AD users and groups for th
-
When will the fifth gen iPod touch be available in stores
i need to know
-
Dear Experts, We are in a process of integrating SAP-IS-Retail-XI-Triversity. We have installed Xi SR2, but could not find the following necessary components required in SLD. SWC Version: Xi Content GM Storeconnect 1.0 Xi Content TE Storeconnect 1.0
-
Maintain State of a Tree Table
Hi, I am using Tree Table with EJB Datacontrol. I am fetching child records on Disclose icon of a treetable. I have added context menu on tree table to navigate to another taskflow. I want to maintain the same state i.e. Tree Table should be in Expan
-
Why won't itunes store open on my computer?
My library opens and plays, but I cannot access iTunes store. It begins to load, then cuts out about 80%