Workflow status column in AllUserData Table with wrong coded in Content Database?
I would like to write a stored procedure to find out all workflow instances with errors, directly from content database.
I go to dbo.alllists to find out the workflow status column, and query AllUserData and find out not readable text
like:
쳀曩쌙䂻֞鼥
㖦巀䐝义颹暲ﻇൿ
ﱰ臨臸䋖ហ嬀ᨵ瘉
鄌幀鴏䔖튅㐻⩷揬
묨ή姖䩡ꊎ鉛۬浶
⟯봨飮䙕잳摕盜⣢
屑䳬鑥䶵岿珽磯Â
ꬁᆈ䀥䓝䶲紀篰䟫
蓏ꋦ䥌肃瘓⯈᭄
뵎㎙䈸䪿蔀ࢴ
෬꧋辂䘀馻ࡲ琓
ꞎ鵫䬺ࢬ䀒✫ꡱ
any ideas?
Hi,
Thanks to share your post.
For the issue, I think it may due to the wrong handling of the encoding type “UTF-8”, please refer to the followed article, they may give you a hand:
http://blogs.sun.com/shankar/entry/how_to_handle_utf_8.
http://devlog.info/2008/08/24/php-and-unicode-utf-8/.
Hope this could help you!
Leo
Similar Messages
-
Move workflow status column from one library to another in Sharepoint 2010
Good morning,
I have two libraries in the same site, LibraryA and LibraryB.
On LibraryA, users upload documents upon which they start a collect signatures workflow. The view on LibraryA contains a column with the signatures workflow name showing status: ‘Compete’, ‘In progress’.
Now on LibraryA I have created a workflow to move any document one month after creation to LibraryB (using retention schedule) irrespective of signature workflow status.
Now what I would like is to have the signature workflow status shown in LibraryB as well. From what I understand you can add the workflow status column only on the library with which the workflow is associated. I also tried, on LibraryB, to create a new
column which Lookups in {Signature Approval History – Outcome} but this did not do the trick either.
Any workarounds?
Many ThanksHi,
According to your description, my understanding is that you want to move the workflow status column to another library in SharePoint 2010.
I recommend to use another column to get the value of the workflow status column and then move this column to another library.
We can use workflow to update the column with the value of workflow status column.
However, the workflow status column stores the value with numbers which represent different status, so we need to update the column with corresponding status based on the numbers in the workflow.
http://chanakyajayabalan.wordpress.com/2010/03/08/sharepoint-workflow-status-codes/
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
How can we access workflow status column out of the box (OOTB).
I have a problem that few of the workflows in production are failed at last stage have status set to "Workflow Errored". Someway I have fixed issue with workflow but I need to modify this status.
I tried adding a custom column and access workflow status column so that I can modify custom column as I want, and show this in views.
But I can't access this without using code, anybody has any idea?
My task is to modify workflow status which are errored out.You can rerun the workflow once you've fixed it up. This'll change the status to something more successful.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Workflow Status column for new content type
Hi,
Initially I had a document library and several workflows associated with it. After that I created a new content type inheriting Folder content type. My existing workflows could be started and work fine with any item of this new content type except anything
related to the workflow status column, such as "Automatically update workflow status to the current stage name", or workflow action "Set workflow status". If I use the OOTB Folder content type, everything's fine. But I need custom fields
for folder as well.
The workflows can be started then it seems unreasonable that they are not associated with the items of the new content type, considering I set my new content type to be the child of the existing Folder content type. So why any item under this new content
type does not have the workflow status column? I've tried removing the workflow from the list and publishing back using SPD without success.
I also notice that when you associate a new content type to a document library/list which has some custom columns, you cannot edit those columns to be used in the new content type. You need to delete those columns and recreate them, then the option "Add
to all content types" is there. Is this expected design?
ThanksHi,
According to your post, an error occurred when you created a custom Edit form for new content type.
We can do as follows:
1.Add the MyNameSpace.MyNewEditPage dll file into GAC(C:\Windows\assembly).
2. Execute the iisreset command.
We can create a new content type using visual studio 2012/2013.
http://www.sharepoint-journey.com/sharepoint-list-content-types-and-site-columns.html
Best Regards
Dennis Guo
TechNet Community Support -
SPD 2013 WorkFlow Status Column: Status Not Updated
We are having an issue with the status display of the SPD Designer Workflow status column which is a read only column added by SharePoint to show the status of the workflow. We have some SharePoint 2013 Workflows built using SharePoint Designer that are
attached to specific SharePoint Document Libraries. The expected behavior is for this column to show the workflow statuses (Not Started, Starting Workflow, In Progress and Completed.
Based on our observation this status is showing up although the column does get added for the Workflow that we have. Is there any other dependency for SPD Workflows that are attached to Document Libraries to show the status correctly? Any other settings/configurations
to be made?
Regards,
Vikram
Blog: http://dotnetupdate.blogspot.com |Hi Venkadesh,
It is by design that 2013 workflow will show stage name in the workflow status column when
Automatically update the workflow status to the current stage name is checked.
And the workflow status column will be blank when Automatically update the workflow status to the current stage name is unchecked.
For existing workflows, the workflow status will still exists with the previous values after unchecking Automatically update the workflow status to the current stage name.
We can use Set Workflow Status action to update the workflow status value based on our needs.
Best regards,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
I've created SPD 2013 workflow and deployed them onto that document library, This workflow execute on item update event. When updating library item, workflow triggered and completed successfully but workflow status column is not
showing the Internal Status values rather it is showing the Stage information. I've unchecked the "Automatically update stage name on workflow status" and republished the workflow. After that, it is still showing the stage information. Any help
is really appreciated.Hi Venkadesh,
It is by design that 2013 workflow will show stage name in the workflow status column when
Automatically update the workflow status to the current stage name is checked.
And the workflow status column will be blank when Automatically update the workflow status to the current stage name is unchecked.
For existing workflows, the workflow status will still exists with the previous values after unchecking Automatically update the workflow status to the current stage name.
We can use Set Workflow Status action to update the workflow status value based on our needs.
Best regards,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to encrypt column of some table with the single method on oracle7/814?
How to encrypt column of some table with the single method on oracle7/814?
How to encrypt column of some table with the single method on oracle7/814?
-
How to encrypt column of some table with the single method ?
How to encrypt column of some table with the single method ?
How to encrypt column of some table with the single
method ?How to encrypt column of some table with the single
method ?
using dbms_crypto package
Assumption: TE is a user in oracle 10g
we have a table need encrypt a column, this column SYSDBA can not look at, it's credit card number.
tha table is
SQL> desc TE.temp_sales
Name Null? Type
CUST_CREDIT_ID NOT NULL NUMBER
CARD_TYPE VARCHAR2(10)
CARD_NUMBER NUMBER
EXPIRY_DATE DATE
CUST_ID NUMBER
1. grant execute on dbms_crypto to te;
2. Create a table with a encrypted columns
SQL> CREATE TABLE te.customer_credit_info(
2 cust_credit_id number
3 CONSTRAINT pk_te_cust_cred PRIMARY KEY
4 USING INDEX TABLESPACE indx
5 enable validate,
6 card_type varchar2(10)
7 constraint te_cust_cred_type_chk check ( upper(card_type) in ('DINERS','AMEX','VISA','MC') ),
8 card_number blob,
9 expiry_date date,
10 cust_id number
11 constraint fk_te_cust_credit_to_cust references te.customer(cust_id) deferrable
12 )
13 storage (initial 50k next 50k pctincrease 0 minextents 1 maxextents 50)
14 tablespace userdata_Lm;
Table created.
SQL> CREATE SEQUENCE te.customers_cred_info_id
2 START WITH 1
3 INCREMENT BY 1
4 NOCACHE
5 NOCYCLE;
Sequence created.
Note: Credit card number is blob data type. It will be encrypted.
3. Loading data encrypt the credit card number
truncate table TE.customer_credit_info;
DECLARE
input_string VARCHAR2(16) := '';
raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
key_string VARCHAR2(8) := 'AsDf!2#4';
raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(key_string,'AL32UTF8','US7ASCII'));
encrypted_raw RAW(2048);
encrypted_string VARCHAR2(2048);
BEGIN
for cred_record in (select upper(CREDIT_CARD) as CREDIT_CARD,
CREDIT_CARD_EXP_DATE,
to_char(CREDIT_CARD_NUMBER) as CREDIT_CARD_NUMBER,
CUST_ID
from TE.temp_sales) loop
dbms_output.put_line('type:' || cred_record.credit_card || 'exp_date:' || cred_record.CREDIT_CARD_EXP_DATE);
dbms_output.put_line('number:' || cred_record.CREDIT_CARD_NUMBER);
input_string := cred_record.CREDIT_CARD_NUMBER;
raw_input := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
dbms_output.put_line('> Input String: ' || CONVERT(UTL_RAW.CAST_TO_VARCHAR2(raw_input),'US7ASCII','AL32UTF8'));
encrypted_raw := dbms_crypto.Encrypt(
src => raw_input,
typ => DBMS_CRYPTO.DES_CBC_PKCS5,
key => raw_key);
encrypted_string := rawtohex(UTL_RAW.CAST_TO_RAW(encrypted_raw)) ;
dbms_output.put_line('> Encrypted hex value : ' || encrypted_string );
insert into TE.customer_credit_info values
(TE.customers_cred_info_id.nextval,
cred_record.credit_card,
encrypted_raw,
cred_record.CREDIT_CARD_EXP_DATE,
cred_record.CUST_ID);
end loop;
commit;
end;
4. Check credit card number script
DECLARE
input_string VARCHAR2(16) := '';
raw_input RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(input_string,'AL32UTF8','US7ASCII'));
key_string VARCHAR2(8) := 'AsDf!2#4';
raw_key RAW(128) := UTL_RAW.CAST_TO_RAW(CONVERT(key_string,'AL32UTF8','US7ASCII'));
encrypted_raw RAW(2048);
encrypted_string VARCHAR2(2048);
decrypted_raw RAW(2048);
decrypted_string VARCHAR2(2048);
cursor cursor_cust_cred is select CUST_CREDIT_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, CUST_ID
from TE.customer_credit_info order by CUST_CREDIT_ID;
v_id customer_credit_info.CUST_CREDIT_ID%type;
v_type customer_credit_info.CARD_TYPE%type;
v_EXPIRY_DATE customer_credit_info.EXPIRY_DATE%type;
v_CUST_ID customer_credit_info.CUST_ID%type;
BEGIN
dbms_output.put_line('ID Type Number Expiry_date cust_id');
dbms_output.put_line('-----------------------------------------------------');
open cursor_cust_cred;
loop
fetch cursor_cust_cred into v_id, v_type, encrypted_raw, v_expiry_date, v_cust_id;
exit when cursor_cust_cred%notfound;
decrypted_raw := dbms_crypto.Decrypt(
src => encrypted_raw,
typ => DBMS_CRYPTO.DES_CBC_PKCS5,
key => raw_key);
decrypted_string := CONVERT(UTL_RAW.CAST_TO_VARCHAR2(decrypted_raw),'US7ASCII','AL32UTF8');
dbms_output.put_line(V_ID ||' ' ||
V_TYPE ||' ' ||
decrypted_string || ' ' ||
v_EXPIRY_DATE || ' ' ||
v_CUST_ID);
end loop;
close cursor_cust_cred;
commit;
end;
/ -
Repeat header's column in a table with row height that greater then 200px
== Issue
==
I have another kind of problem with Firefox
== Description
==
I develop a website and encounter some problem about web page printing. I try to repeat header's column in a table with row's height that greater than or equal to 198px, but it doesn't work. Another size that lower than 198px works fine. If somebody has seen this issue before and know a solution, please help me. Thanks in advance.
== This happened
==
Every time Firefox opened
== Firefox version
==
3.6.6
== Operating system
==
Windows XP
== User Agent
==
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
== Plugins installed
==
*-6.0.12.1739
*RealPlayer(tm) LiveConnect-Enabled Plug-In
*PDF-XChange Viewer Netscape Gecko Plugin
*Default Plug-in
*Shockwave Flash 8.0 r22
*Adobe Shockwave for Director Netscape plug-in, version 11.0
*3.0.40624.0
*Office Live Update v1.3
*Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
*Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
*Npdsplay dll
*DRM Store Netscape Plugin
*DRM Netscape Network ObjectTry posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
[http://forums.mozillazine.org/viewforum.php?f=25]
You'll need to register and login to be able to post in that forum. -
General Scenario- Adding columns into a table with more than 100 million rows
I was asked/given a scenario, what issues do you encounter when you try to add new columns to a table with more than 200 million rows? How do you overcome those?
Thanks in advance.
svkFor such a large table, it is better to add the new column to the end of the table to avoid any performance impact, as RSingh suggested.
Also avoid to use any default on the newly created statement, or SQL Server will have to fill up 200 million fields with this default value. If you need one, add an empty column and update the column by using small batches (otherwise you lock up the whole
table). Add the default after all the rows have a value for the new column. -
Add columns to a table with lob column
Hi,
Just a quick question: is there a performance penalty after adding columns to a table with a lob fied? the lob field is now the last column in the table and via via I was told that adding columns will impact badly the IO performance on the table if the lob field isn't anymore the last column. The table is on a Oracle 10.2.0.3 version.
thanks. regards
IvanHavent heard of performance degradation specifically due to a LOB column not being the last column in a table (although there are several issues with just having a LOB column in a table).
You may want to build a test database to test it out. It should be easy to run tests comparing one with the additional column and one the original to prove or refute it. The results would be interesting to learn - please post them up if you intend to test it out. -
Need to update a single column in a table with some other column value
Hi experts,
I was about to change one column data type in a table. Then I renamed that column name to "old_column_name" . Later I added new column name with required datatype( My case its NCLOB). Now I want to update the new column value with old column value.I mean i have to copy the data. But data amount is very huge. Its more than 1.5 crores of data. But on promote day, I have only 1 hr of outage. Please suggest the effective solution to achieve this.Hi Stew
I have 1 primary key in my table and 11 foreign keys in my table.there are 20 check constraints as well.
If i go for an online redefine of a table, these objects will be created back automatically?
Please clarify.
This is my table. Here Remarks is the column with CLOB datatype. To support multi language, I need to change it to NCLOB. That column having data so i cant rename it.
So I added new column , after renaming that remarks to old_remarks. Now new column remarks is ready with NCLOB data type, but no data in it.
To copy the old remarks column into new remarks column, i thought to write one script. But how it is achievable using "DBMS_REDEFINITION". Please explain me,
create table XXXXXXXXXX
ID NUMBER(8),
COMPLETED_DATE DATE,
COMMUNICATION_MEDIUM VARCHAR2(32),
REMARKS1 VARCHAR2(4000),
COPY VARCHAR2(1),
IO_MARKER VARCHAR2(3),
EVENT_DATE DATE,
CON_REF_NO NUMBER(8),
DEP_CODE VARCHAR2(6),
SFM_STAFF_NO NUMBER(8),
CRPD_ID NUMBER(8),
CRPD_ID_COPY NUMBER(8),
STATUS VARCHAR2(2),
COMEBACK_NO NUMBER(2),
ADD_ADD_ID NUMBER(10),
AEV_ID NUMBER(8),
OLAY_ID NUMBER(8),
COE_TYPE VARCHAR2(3),
CET_CODE VARCHAR2(6),
DEP_CODE_RAISED_BY VARCHAR2(6),
SFM_STAFF_NO_RAISED_BY NUMBER(8),
USR_CREATED VARCHAR2(30),
CREATED DATE,
USR_CHANGED VARCHAR2(30),
CHANGED DATE,
EXT_REF_ID VARCHAR2(150),
REPLY_EXPECTED_DATE DATE,
SEC_ID VARCHAR2(8) not null,
PROTECTED VARCHAR2(1),
APPROVED_BY NUMBER(8),
DOCUMENT BLOB,
OLD_REMARKS CLOB,
CTS_ID NUMBER(8),
MESSAGE_STATUS VARCHAR2(4),
WORD_DOCUMENT NCLOB,
REMARKS NCLOB
Edited by: Hema on Jul 2, 2012 8:31 AM
Edited by: Hema on Jul 2, 2012 8:31 AM -
Send Email when built in approval workflow status column changes to approved
I Implemented the built in approval work flow in a document library,I want to send an email when the column indicating the status of the workflows changes from in progress to approved.
Hi ,
According to your description, my understanding is that you want to send email when the built-in approval workflow status was approved.
For the default built-in approval workflow, per my knowledge, there is not a way to modify it. As a workaround, you can create a Reusable Workflow with SharePoint Designer 2010, and publish it to your SharePoint, then you can use it like the built-in approval
workflow.
You can do as the followings:
Install SharePoint Designer 2010.
Open your site with SharePoint Designer 2010.
Click Workflow under Navigation.
Click Reusable Workflow, and type a name.
Add “Start Approval Process” action, in the ‘these user’ , type the approvers.
Click ‘Approval’ field, and under Customization, click “Change the behavior of a single task”.
On the “When a Task Completes”, add “Send an Email” action in the approved condition,like the screenshot below.
Then save and publish the workflow, then you can use the workflow in your SharePoint site .
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Update workflow status column using PowerShell
Hi All,
Using PowerShell i want to update the 'Document Status' column as 'Approved' if it is 'Pending' when it is approved and Task Status is = 'Completed'
Intermittently my custom workflow is not updating the 'Document Status' column as 'Approved' though it is approved and Task Status is = 'Completed'
So I thought about running a PowerShell script to work around it.
Can you please help me for the script.
Thanks & Regards
MD.Liakath aliHi,
The following PowerShell script for your reference:
$SPWeb = Get-SPWeb http://site
$List = $SPWeb.Lists["ListName"]
$items = $List.Items
foreach ($item in $items) {
$taskStatus = $item["Task Status"]
$docStatus = $item["Document Status"]
if ($taskStatus -eq "Completed" -and $docStatus -eq "Pending")
$item["Document Status"] = "Approved"
$item.Update()
$list.Update()
$SPWeb.Dispose()
If the 'Document Status' column is "Approval Status" column and your workflow is an approval workflow, the following articles may be helpful:
Approval workflow does not update the approval status of items
https://kanithi.wordpress.com/2014/03/13/approval-workflow-does-not-update-the-approval-status-of-items/
SharePoint 2010 Approval Workflow with Content Approval
https://eointherealworld.wordpress.com/2010/12/29/sharepoint-2010-approval-workflow-with-content-approval/
Best Regards
Dennis Guo
TechNet Community Support -
How to match columns of two tables with
Hello:
I've two tables like below:
Table1:(Base Table)
Country|Prefix|Prefix_Length
CountryA|001|3
CountryB|0012|4
CountryC|00443|5
CountryD|0091|4
Table2:(Detail Table)
Population|Area|Prefix
500|AreaA|0015921
1000|AreaB|00122
400|AreaC|00443743
300|AreaD|0091333
100|AreaA|001
I need to match these two tables with prefix column (which length is not fixed in both tables: but it starts with 00 in both tables). Two different countries prefix can be similar up to a certain length. So, Prefix_Length can be used to determine (exactly) how long should be taken to search from Table2.
Output:
Country|Prefix|Area|Population
CountryA|001|AreaA|600
CountryB|0012|AreaB|1000
CountryC|00443|AreaC|400
CountryD|0091|AreaD|300
Please help me with your valuable feedback.
-TanvirYou have to explain how CountryA population is calculated:
with base_table as (
select 'CountryA' country,'001' prefix,3 prefix_length from dual union all
select 'CountryB','0012',4 from dual union all
select 'CountryC','00443',5 from dual union all
select 'CountryD','0091',4 from dual
detail_table as (
select 500 population,'AreaA' area,'0015921' prefix from dual union all
select 1000,'AreaB','00122' from dual union all
select 400,'AreaC','00443743' from dual union all
select 300,'AreaD','0091333' from dual union all
select 100,'AreaA','001' from dual
-- end of on-the-fly data sample
select country,
b.prefix,
area,
population
from base_table b,
detail_table d
where b.prefix = substr(d.prefix,1,prefix_length)
COUNTRY PREFI AREA POPULATION
CountryA 001 AreaA 500
CountryA 001 AreaB 1000
CountryA 001 AreaA 100
CountryB 0012 AreaB 1000
CountryC 00443 AreaC 400
CountryD 0091 AreaD 300
6 rows selected.
SQL> SY.
Maybe you are looking for
-
Increasing shared VRAM on a GMA X3100
I have a white Macbook with the GMA X3100 graphics chipset (I think it is Santa Rosa). The system profiler says I have 144MB of VRAM. I have 2GB of RAM installed. My questing is, since the VRAM is shared memory from the system RAM, would I be able to
-
I've moved back to CS4 to create and export my ebooks, since CS5 has the [very annoying] bug of failing to properly export intra book document hyperlinks. Unfortunately, though CS4 seems to make better interactive epub files, I'm running into some o
-
My bluetooth has disappeared from my MacBook. How do I install again?
my bluetooth has disappeared from my MacBook. How do I install again?
-
Move of material with serial number in MB1B
Hi I discovered something in our system. I wanted to transfer materials with serial numbers from one plant (one stock), into another (another stock) in MB1B. I wrote down the material number and the quantity then a window comes up where I could write
-
Executing host through a concurrent program to load data
hello all, Dear Friends, i want to use host command in a concurrent request to load data in a table from a flat file . for that i wrote one flat file(test_data_host.txt) , one control file(test_data_host.ctl) , one script file(test_data_host_prog.pro